﻿.gallery-title {
    font-size: 40px;
    font-weight: bold;
    margin-top: 30px;
    color: #333;
}

.gallery-subtitle {
    color: #777;
    margin-bottom: 30px;
}

.gallery-item {
    margin-bottom: 30px;
}

/* Gallery cards */
.gallery-card {
    position: relative;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

    .gallery-card:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    }

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    text-align: center;
    padding: 10px;
    pointer-events: none;
}

    .gallery-overlay h4 {
        margin: 0;
        font-size: 1rem;
    }

/* Category cards */
.gallery-category-card {
    position: relative;
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    transition: 0.25s ease-in-out;
    background-size: cover;
    background-position: center;
}

    .gallery-category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    }

.gallery-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.75));
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 25px;
}

    .gallery-category-overlay h3 {
        color: white;
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
    }

.back-to-categories {
    margin-bottom: 25px;
}

/* Modal lightbox */
.gallery-lightbox {
    width: 76vw !important;
    max-width: 76vw !important;
}

    .gallery-lightbox .modal-content {
        height: 70vh !important;
        border: none;
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 25px 80px rgba(0,0,0,0.55);
    }

.gallery-lightbox-body {
    display: grid;
    grid-template-columns: 50% 50%;
    height: 100%;
    width: 100%;
}

.gallery-info-panel {
    padding: 38px 32px;
    background: #fff;
    overflow-y: auto;
}

    .gallery-info-panel h2 {
        font-size: 24px;
        font-weight: 700;
        color: #111;
        margin-bottom: 16px;
    }

.gallery-gold-line {
    width: 100%;
    height: 3px;
    background: #a66a2c;
    margin-bottom: 24px;
}

#galleryModalDescription {
    font-size: 14px;
    line-height: 1.6;
    color: #222;
    white-space: pre-wrap;
    margin: 0;
}

.gallery-image-panel {
    padding: 2px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#galleryModalImg {
    max-width: 78%;
    max-height: 78%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.gallery-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 20;
    border: none;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    color: #111;
    cursor: pointer;
}

.modal-backdrop.show {
    opacity: 0.75;
}

/* Mobile */
@media (max-width: 991px) {
    .gallery-lightbox {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0;
    }

        .gallery-lightbox .modal-content {
            height: 100vh !important;
            border-radius: 0;
        }

    .gallery-lightbox-body {
        grid-template-columns: 50% 50%;
    }

    .gallery-info-panel {
        padding: 5px 5px;
    }

    .gallery-image-panel {
        padding: 20px;
    }
}
