/* ═══════════════════════════════════════════════════════════════
   ACF Airbnb Gallery Widget — gallery.css v2.1
   Auto-layouts: layout-1 through layout-5 by image count
   getbuzzmarketing.com
═══════════════════════════════════════════════════════════════ */

/* ── Wrap ──────────────────────────────────────────────────── */
.aag-wrap {
    position: relative;
    font-family: inherit;
}

/* ── Editor placeholder ────────────────────────────────────── */
.aag-placeholder {
    padding: 24px;
    background: #f9f9f9;
    border: 1.5px dashed #ccc;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   GRID BASE
════════════════════════════════════════════════════════════ */
.aag-grid {
    display: grid;
    gap: 6px;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.aag-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #e0e0e0;
    /* reset <a> tag defaults */
    display: block;
    text-decoration: none;
    color: inherit;
    outline-offset: 2px;
    /* heights are set per-layout below */
}

.aag-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

/* ── Zoom on hover ─────────────────────────────────────────── */
.aag-grid.aag-zoom .aag-item:hover img {
    transform: scale(1.05);
}

/* ── Dark overlay on hover (::after) ──────────────────────── */
.aag-grid.aag-overlay .aag-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}
.aag-grid.aag-overlay .aag-item:hover::after {
    opacity: 1;
}

/* ── Zoom icon ─────────────────────────────────────────────── */
.aag-hover-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 2;
}
.aag-hover-icon svg {
    width: 36px;
    height: 36px;
    color: #fff;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.45));
}
.aag-item:hover .aag-hover-icon { opacity: 1; }

/* ── +N more overlay ───────────────────────────────────────── */
.aag-more img           { filter: brightness(0.45); }
.aag-more::after        { display: none !important; } /* hide hover overlay on +N cell */
.aag-more__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.5px;
    pointer-events: none;
    z-index: 3;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}


/* ════════════════════════════════════════════════════════════
   AUTO LAYOUTS BY IMAGE COUNT
   Heights are fallback defaults — overridden by Elementor
   responsive controls via inline CSS selectors.
════════════════════════════════════════════════════════════ */

/* ── layout-1 : 1 image — full width ──────────────────────── */
.aag-grid.layout-1 {
    grid-template-columns: 1fr;
}
.aag-grid.layout-1 .aag-item {
    height: 480px;
}

/* ── layout-2 : 2 images — 50/50 ──────────────────────────── */
.aag-grid.layout-2 {
    grid-template-columns: 1fr 1fr;
}
.aag-grid.layout-2 .aag-item {
    height: 480px;
}

/* ── layout-3 : 3 images — 1 large left + 2 stacked right ── */
.aag-grid.layout-3 {
    grid-template-columns: 2fr 1fr;
}
.aag-grid.layout-3 .aag-item:first-child {
    grid-row: span 2;
    height: 480px;
}
.aag-grid.layout-3 .aag-item:not(:first-child) {
    height: 234px;
}

/* ── layout-4 : 4 images — 2×2 equal grid ─────────────────── */
.aag-grid.layout-4 {
    grid-template-columns: 1fr 1fr;
}
.aag-grid.layout-4 .aag-item {
    height: 234px;
}

/* ── layout-5 : 5+ images — Airbnb (1 large + 2×2) ────────── */
.aag-grid.layout-5 {
    grid-template-columns: 2fr 1fr 1fr;
}
.aag-grid.layout-5 .aag-item:first-child {
    grid-row: span 2;
    height: 480px;
}
.aag-grid.layout-5 .aag-item:not(:first-child) {
    height: 234px;
}


/* ════════════════════════════════════════════════════════════
   SHOW ALL BUTTON
════════════════════════════════════════════════════════════ */
.aag-btn {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.22);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #111;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
    z-index: 4;
    white-space: nowrap;
    line-height: 1;
}
.aag-btn:hover {
    background: #f4f4f4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.aag-btn--br { bottom: 14px; right: 14px; left: auto;  transform: none; }
.aag-btn--bl { bottom: 14px; left: 14px;  right: auto; transform: none; }
.aag-btn--bc { bottom: 14px; left: 50%;   right: auto; transform: translateX(-50%); }


/* ════════════════════════════════════════════════════════════
   ELEMENTOR LIGHTBOX — Arrow visibility fix
   Arrows work (slideshow navigates) but icons are invisible —
   likely the eicons font isn't loaded on frontend, or color
   blends with background. We force visibility + add SVG fallback.
════════════════════════════════════════════════════════════ */

/* Show the arrow container elements */
.elementor-lightbox .elementor-swiper-button,
.elementor-lightbox .elementor-swiper-button-prev,
.elementor-lightbox .elementor-swiper-button-next {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute !important;
    z-index: 10 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
	padding:12px!important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.45) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    color: #fff !important;
    font-size: 20px !important;
}

.elementor-lightbox .elementor-swiper-button-prev { left: 20px !important; }
.elementor-lightbox .elementor-swiper-button-next { right: 20px !important; }

/* Force the icon inside to be visible */
.elementor-lightbox .elementor-swiper-button i,
.elementor-lightbox .elementor-swiper-button svg,
.elementor-lightbox .elementor-swiper-button::before {
    display: block !important;
    visibility: visible !important;
    color: #fff !important;
    fill: #fff !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

/* If eicons font isn't loaded, inject arrow characters via ::after */
.elementor-lightbox .elementor-swiper-button-prev:not(:has(i)):not(:has(svg))::after {
    content: '‹' !important;
    font-size: 32px !important;
    color: #fff !important;
    line-height: 1 !important;
    font-family: serif !important;
}
.elementor-lightbox .elementor-swiper-button-next:not(:has(i)):not(:has(svg))::after {
    content: '›' !important;
    font-size: 32px !important;
    color: #fff !important;
    line-height: 1 !important;
    font-family: serif !important;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .aag-grid.layout-1 .aag-item,
    .aag-grid.layout-2 .aag-item          { height: 360px; }

    .aag-grid.layout-3 .aag-item:first-child,
    .aag-grid.layout-5 .aag-item:first-child { height: 360px; }

    .aag-grid.layout-3 .aag-item:not(:first-child),
    .aag-grid.layout-4 .aag-item,
    .aag-grid.layout-5 .aag-item:not(:first-child) { height: 174px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 767px)
════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* layout-1: unchanged, just shorter */
    .aag-grid.layout-1 .aag-item { height: 240px; }

    /* layout-2: stack vertically */
    .aag-grid.layout-2 {
        grid-template-columns: 1fr;
    }
    .aag-grid.layout-2 .aag-item { height: 200px; }

    /* layout-3: hero top, 2 below side by side */
    .aag-grid.layout-3 {
        grid-template-columns: 1fr 1fr;
    }
    .aag-grid.layout-3 .aag-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1;
        height: 220px;
    }
    .aag-grid.layout-3 .aag-item:not(:first-child) { height: 120px; }

    /* layout-4: 2×2 just shorter */
    .aag-grid.layout-4 .aag-item { height: 140px; }

    /* layout-5: hero top full-width, 4 below in 2 columns */
    .aag-grid.layout-5 {
        grid-template-columns: 1fr 1fr;
    }
    .aag-grid.layout-5 .aag-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1;
        height: 220px;
    }
    .aag-grid.layout-5 .aag-item:not(:first-child) { height: 120px; }

    /* Lightbox */
    .aag-lb__nav       { padding: 10px 12px; font-size: 16px; }
    .aag-lb__stage     { gap: 6px; padding-top: 56px; }
    .aag-lb__img       { max-height: 55vh; }
    .aag-lb__thumbs img { width: 48px; height: 36px; }
    .aag-more__label   { font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Small mobile (≤ 480px)
════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .aag-grid.layout-4 .aag-item             { height: 110px; }
    .aag-grid.layout-5 .aag-item:not(:first-child) { height: 100px; }
    .aag-btn { font-size: 11px; padding: 7px 11px; }
    .aag-lb__caption { font-size: 12px; }
    .aag-hover-icon svg { width: 28px; height: 28px; }
}
