.gallery-section {
    /* background-color: var(--black); */
    background-color: var(--media-bg);
}

.gallery-title .main-heading {
    padding: 100px 0 50px 0;
    margin: 0;
}

.gallery-title .main-heading h1 {
    color: var(--media-text);
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    background-color: transparent;
    width: 100%;
    padding: 10px;
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3);
    margin: 0px auto;
    justify-content: space-around;
    align-items: center;
}

.gallery-item {
    flex-basis: 32.7%;
    margin-bottom: 6px;
    cursor: pointer;
    opacity: 1;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    opacity: 0.85;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-gallery {
    display: flex;
    flex-basis: 32.7%;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

/* From Uiverse.io by andrew-demchenk0 */
.see-g-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 1px solid #008030;
    background-color: var(--green);
    overflow: hidden;
    z-index: 2;
}

.see-g-button,
.button__icon,
.button__text {
    transition: all 0.3s;
}

.see-g-button .button__text {
    transform: translateX(22px);
    color: var(--white);
    font-weight: 600;
}

.see-g-button .button__icon {
    position: absolute;
    transform: translateX(109px);
    height: 100%;
    width: 39px;
    background-color: #008030;
    display: flex;
    align-items: center;
    justify-content: center;
}

.see-g-button svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

#Icon-Set-Filled {
    fill: var(--white);
}

.see-g-button:hover {
    background: #17795E;
    scale: 1.2;
    border: 2px solid #17795E;
    border-radius: 20px;
}

.see-g-button:active {
    scale: 0.8;
    border: none;
    border-radius: 0;
}

.see-g-button:hover .button__text {
    color: transparent;
}

.see-g-button:hover .button__icon {
    width: 148px;
    transform: translateX(0);
}

.see-g-button:active .button__icon {
    background-color: #146c54;
}

.see-g-button:active {
    border: 1px solid #146c54;
}




/* LIGHTBOX */

.lightbox {
    position: fixed;
    display: none;
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100%;
    overflow: auto;
    top: 0;
    left: 0;
    z-index: 300;
    align-content: center;
}

.lightbox-content {
    position: relative;
    width: 80%;
    max-width: 1200px;
    height: auto;
    margin: 40px auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    border: 6px solid var(--white);
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 9px;
    top: 45%;
    cursor: pointer;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

@media(max-width: 767px) {
    .gallery-container {
        width: 100%;
    }

    .gallery-item {
        flex-basis: 49.80%;
        margin-bottom: 3px;
    }

    .lightbox-content {
        width: 80%;
        margin: 15% auto;
    }
}

@media (max-width:480px) {
    .gallery-item {
        flex-basis: 100%;
        margin-bottom: 1px;
    }

    .lightbox-content {
        width: 90%;
        margin: 20px auto;
    }
}

.gallery-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 1170px;
    max-height: 1170px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    z-index: 1;
    animation: none;
    pointer-events: none;
}

.gallery-circle:nth-child(2) {
    opacity: 1;
    width: 75px;
    height: 75px;
    background-color: var(--white);
    animation-delay: -1s;
}
.gallery-circle:nth-child(3) {
    opacity: 0.8;
    width: 225px;
    height: 225px;
    background-color: var(--white);
    animation-delay: -2s;
}
.gallery-circle:nth-child(4) {
    opacity: 0.6;
    width: 374px;
    height: 374px;
    background-color: var(--white);
    animation-delay: -3s;
}
.gallery-circle:nth-child(5) {
    opacity: 0.4;
    width: 524px;
    height: 524px;
    background-color: var(--white);
    animation-delay: -4s;
}

.gallery-circle:nth-child(6){
    opacity: 0.2;
    width: 674px;
    height: 674px;
    background-color: var(--white);
    animation-delay: -5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    90% {
        transform: scale(3);
        opacity: 0;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.see-g-button:hover ~ .gallery-circle {
    animation: pulse 5s infinite;
}

.lightbox-content img.zoomed ~ .lightbox-prev,
.lightbox-content img.zoomed ~ .lightbox-next {
    display: none;
}

/* Add this to handle hover effects on the last gallery item */
.gallery-item[data-index="9"]:hover .see-g-button {
    background: #17795E;
    scale: 1.2;
    border: 2px solid #17795E;
    border-radius: 20px;
}

.gallery-item[data-index="9"]:hover .button__text {
    color: transparent;
}

.gallery-item[data-index="9"]:hover .button__icon {
    width: 148px;
    transform: translateX(0);
}

