/* Gallery Link */
.gallery-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

.gallery-link:hover {
    border-bottom-color: #fff;
}

/* Gallery Overlay */
.gallery-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
}

/* Exit Button */
.exit-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10000;
}

.exit-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Navigation Controls */
.overlay-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .gallery-overlay {
        background-size: contain;
    }

    .overlay-controls {
        width: 100%;
        padding: 0 10px;
    }

    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.7);
    }

    .exit-button {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.7);
    }
}

@media screen and (max-width: 480px) {
    .overlay-controls {
        width: 100%;
        padding: 0 5px;
    }

    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .exit-button {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}
