/* ================================================
   HORIZONTAL SCROLLING GALLERY + LIGHTBOX STYLES
   ================================================ */

/* Scroll wrapper */
.gal-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold, #C9A961) rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.gal-scroll-wrap:active { cursor: grabbing; }

.gal-scroll-wrap::-webkit-scrollbar { height: 6px; }
.gal-scroll-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
.gal-scroll-wrap::-webkit-scrollbar-thumb { background: var(--gold, #C9A961); border-radius: 10px; }

/* The scrolling row */
.gal-scroll {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    padding: 0 5% 0.5rem;
    width: max-content;
}

/* Each gallery item */
.gal-scroll .gal-item {
    position: relative;
    width: 340px;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gal-scroll .gal-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.gal-scroll .gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    pointer-events: none;
}

.gal-scroll .gal-item:hover img { transform: scale(1.08); }

.gal-scroll .gal-ov {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.75));
    opacity: 0;
    transition: opacity 0.35s;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
}

.gal-scroll .gal-item:hover .gal-ov { opacity: 1; }
.gal-scroll .gal-ov span { color: white; font-size: 1rem; font-weight: 600; }

/* Zoom icon on hover */
.gal-scroll .gal-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 5;
}

.gal-scroll .gal-item:hover::after {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile */
@media (max-width: 768px) {
    .gal-scroll .gal-item { width: 260px; height: 220px; }
}
