.hicode-life {
    background-color: #f8f8f8;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.photo-filter {
    width: fit-content;
    margin-bottom: 20px;
}

.photo-filter .form-select:focus {
    box-shadow: none;
    outline: none;
}

.custom-select {
    appearance: none;
    background: var(--white-color);
    color: var(--main-color);
    border: 1px solid #eee;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 150px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    margin: 0 auto 20px;
    font-size: 20px;
    font-weight: 600;
    font-family: var(--title-font);
    padding: 10px;
}

.custom-select:focus {
    outline: none;
    border-color: #62A1D1;
    box-shadow: 0 0 5px rgba(98, 161, 209, 0.5);
}
.custom-select:hover {
    background-color: var(--main-color);
    color: var(--white-color);
}

.frame-pic {
    width: 300px;
    overflow: hidden;
    position: relative;
    display: inline-block;
    height: 400px;
}

.frame-pic:before {
    background-image: url(../images/pin-frame.png);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.frame-pic:after {
    top: 30px;
    left: 0;
    content: "Hicode";
    position: absolute;
    width: 120px;
    height: 40px;
    background: linear-gradient(to right, var(--main-color), var(--second-color));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: rotate(320deg);
    z-index: 20;
    font-family: var(--font-title);
    font-weight: 600 !important;
    font-size: 18px;
    text-align: center;
    color: var(--white-color);
    line-height: 40px;
    border-radius: 5px;
}

.frame-pic img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    padding: 20px;
}

@media (max-width:768px) {
    .gallery-container {
        display: block;
        text-align: center;
    }
}

@media (min-width:768px) and (max-width: 992px) {
    .gallery-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }
}

@media (min-width:992px) and (max-width: 1199.98px) {
    .gallery-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 20px;
    }
}

@media (min-width:1199.98px) and (max-width: 1400px) {
    .gallery-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 20px;
    }
}