/* Guest gallery (/gallery) */

.guest-gallery {
    padding-bottom: 2rem;
}

.guest-gallery .logo-row h1 {
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
}

.guest-gallery .gallery-toolbar {
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.guest-gallery .gallery-filter {
    position: relative;
    width: 100%;
    max-width: 20rem;
}

.guest-gallery .gallery-filter__icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #64748b;
    pointer-events: none;
    font-size: 0.9rem;
}

.guest-gallery .gallery-filter__select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 2.65rem;
    padding: 0.5rem 2.4rem 0.5rem 2.55rem;
    border: 1.5px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guest-gallery .gallery-filter__select:hover,
.guest-gallery .gallery-filter__select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.guest-gallery .gallery-filter__chevron {
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #64748b;
    pointer-events: none;
    font-size: 0.75rem;
}

.guest-gallery .gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

.guest-gallery .gallery-section__title {
    margin: 2rem 0 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid rgba(22, 163, 74, 0.35);
    font-size: clamp(1.05rem, 2.8vw, 1.3rem);
    font-weight: 700;
    text-align: center;
    scroll-margin-top: 6rem;
}

.guest-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guest-gallery .gallery-item {
    min-width: 0;
}

.guest-gallery .gallery-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guest-gallery .gallery-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.guest-gallery .gallery-thumb img.thumbnail,
.guest-gallery .gallery-thumb video.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.guest-gallery .gallery-empty {
    max-width: 720px;
    margin: 2rem auto;
    padding: 1.25rem 1rem;
    text-align: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px dashed rgba(148, 163, 184, 0.45);
    color: #64748b !important;
}

@media (max-width: 575.98px) {
    .guest-gallery .gallery-toolbar {
        justify-content: stretch !important;
    }

    .guest-gallery .gallery-filter {
        max-width: none;
    }

    .guest-gallery .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.65rem;
    }
}

body.theme-dark.guest-dashboard .guest-gallery .gallery-filter__select {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(148, 163, 184, 0.28);
    color: #e2e8f0 !important;
}

body.theme-dark.guest-dashboard .guest-gallery .gallery-section__title {
    border-bottom-color: rgba(74, 222, 128, 0.35);
}

body.theme-dark.guest-dashboard .guest-gallery .gallery-thumb {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark.guest-dashboard .guest-gallery .gallery-empty {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(148, 163, 184, 0.3);
    color: #cbd5e1 !important;
}
