/* Gallery View Page Styles */

/* Gallery Grid Hover Effects */
.gallery__element .photos .photo img,
.gallery__element .photos .photo--big img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery__element .photos .photo:hover img,
.gallery__element .photos .photo--big:hover img {
    opacity: 0.7;
}

.gallery__element .photos .more-photos:hover img {
    opacity: 0.3 !important;
}

/* Gallery Grid - "View All Photos" Overlay */
.gallery__element .photos .more-photos {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gallery__element .photos .more-photos a {
    position: relative;
    display: block !important;
    line-height: 0 !important;
    margin-top: 0 !important;
    border-bottom: none !important;
    pointer-events: auto;
    width: auto !important;
    height: auto !important;
}

.gallery__element .photos .more-photos img {
    display: block !important;
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.gallery__element .photos .more-photos .caption {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.5) !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    transition: background 0.3s !important;
    z-index: 2 !important;
    pointer-events: none !important;
    text-transform: uppercase !important;
}

.gallery__element .photos .more-photos .caption div {
    padding: 10px;
}

.gallery__element .photos .more-photos a:hover .caption {
    background: rgba(0, 0, 0, 0.7) !important;
}

.gallery-view__back {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.gallery-view__back:hover {
    background: #555;
    color: #fff;
}

.gallery-view__images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-view__image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-view__image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.gallery-view__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile: Single column */
@media (max-width: 768px) {
    .gallery-view__images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Fullscreen modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-modal__image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.fullscreen-modal__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.fullscreen-modal__close:hover {
    color: #ccc;
}

.fullscreen-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s;
}

.fullscreen-modal__nav:hover {
    color: #ccc;
}

.fullscreen-modal__nav--prev {
    left: 20px;
}

.fullscreen-modal__nav--next {
    right: 20px;
}

/* Hide navigation on mobile */
@media (max-width: 768px) {
    .fullscreen-modal__nav {
        display: none;
    }
}

