/* ============================================================
   Gallery Component — IndexGallery/Default.cshtml
   ============================================================ */

/* ── Section wrapper ─────────────────────────────── */
.gallery-section {
    background: linear-gradient(160deg, #1e2428 0%, #2c3236 50%, #1a1e22 100%);
    padding: 4rem 0 3rem;
    overflow: hidden;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ── Section header ──────────────────────────────── */
.gallery-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.gallery-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--brand-orange);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    font-family: "Montserrat", sans-serif;
}

.gallery-heading {
    font-family: "Bebas Neue", sans-serif;
    font-size: 3rem;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.gallery-heading-bar {
    width: 50px;
    height: 3px;
    background: var(--brand-orange);
    margin: 0.75rem auto 0;
}

/* ── Owl stage ───────────────────────────────────── */
.gallery-stage-wrap {
    padding: 0 0 1rem;
    position: relative;
    z-index: 1;
}

/* ── Per-item scale/fade focus effect ────────────── */
.owl-carouselproduct .owl-item {
    transition:
        transform  0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity    0.55s ease,
        filter     0.55s ease;
    opacity: 0.45;
    transform: scale(0.80);
    filter: grayscale(35%) brightness(0.75);
    will-change: transform, opacity, filter;
}

.owl-carouselproduct .owl-item.active {
    opacity: 0.75;
    transform: scale(0.90);
    filter: grayscale(10%) brightness(0.9);
}

.owl-carouselproduct .owl-item.center {
    opacity: 1;
    transform: scale(1);
    filter: none;
}

/* ── Card styling ────────────────────────────────── */
.gallery-card-equal-height {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    border: none;
    transition: box-shadow 0.4s ease;
    overflow: visible;
}

.owl-carouselproduct .owl-item.center .gallery-card-equal-height {
    box-shadow:
        0 0 0 2px rgba(232, 115, 33, 0.35),
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 8px 20px rgba(232, 115, 33, 0.12);
}

/* ── Image container ─────────────────────────────── */
.gallery-image-container {
    flex: 0 0 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.gallery-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.gallery-image-contain {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-link:hover .gallery-image-contain {
    transform: scale(1.06);
}

/* ── Overlay ─────────────────────────────────────── */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(232, 115, 33, 0.7) 0%,
        rgba(56, 62, 66, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2.2rem;
    transform: scale(0.6);
    transition: transform 0.35s ease;
}

.gallery-link:hover .gallery-overlay {
    opacity: 1;
}

.gallery-link:hover .gallery-overlay i {
    transform: scale(1);
}

/* ── Title area ──────────────────────────────────── */
.textowlinside {
    flex: 1;
    padding: 0.75rem 0.75rem 0.75rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ── Owl nav arrows ──────────────────────────────── */
#gallery-owl .owl-nav {
    margin-top: 1.75rem;
    display: flex;
    justify-content: center;
    gap: 12px;
}

#gallery-owl .owl-nav button {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: var(--brand-orange) !important;
    color: #fff !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.25s ease, transform 0.25s ease !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(232,115,33,0.4) !important;
}

#gallery-owl .owl-nav button:hover {
    background: #c25a14 !important;
    transform: scale(1.12) !important;
}

#gallery-owl .owl-nav button span {
    font-size: 1.2rem;
    line-height: 1;
    margin-top: -2px;
}

/* ── Dots ────────────────────────────────────────── */
#gallery-owl .owl-dots {
    margin-top: 1.25rem;
}

#gallery-owl .owl-dot span {
    background: rgba(255,255,255,0.3) !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
}

#gallery-owl .owl-dot.active span,
#gallery-owl .owl-dot:hover span {
    background: var(--brand-orange) !important;
    transform: scale(1.3) !important;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .gallery-heading { font-size: 2.2rem; }
    .gallery-image-container { flex: 0 0 240px; height: 240px; }
}

@media (max-width: 480px) {
    .gallery-image-container { flex: 0 0 200px; height: 200px; }
    .textowlinside { min-height: 72px; }
}
