/* ============================================================
   gallery-enhance.css
   Visual redesign for the GALLERY page (Gallery.aspx) only.
   Additive / overriding -- linked only on Gallery.aspx.
   Palette kept identical to theme.css / home-enhance.css:
     primary blue  #2491d0
     teal/green    #00dba5 / #00bf99 / #00acdb
     dark text     #233a46 / #455f68
     light bg      #f1f8f9
   ============================================================ */

html { scroll-behavior: smooth; }

/* ---------- HERO ---------- */
.gx-hero {
    position: relative;
    background: linear-gradient(135deg, #063b44 0%, #00879d 55%, #00a6b8 100%);
    color: #fff;
    text-align: center;
    padding: 70px 15px 60px;
    overflow: hidden;
}
.gx-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/title_img_bg_gallery.jpg') center/cover no-repeat;
    opacity: .18;
}
.gx-hero > .container { position: relative; z-index: 1; }
.gx-hero h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: .5px;
    margin: 0 0 14px;
    text-transform: uppercase;
}
.gx-hero p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    opacity: .95;
}

/* ---------- BREADCRUMB ---------- */
.gx-crumbs { background: #f1f8f9; border-bottom: 1px solid #e4edee; }
.gx-crumbs ol {
    list-style: none;
    margin: 0;
    padding: 14px 0;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.gx-crumbs a { color: #00879d; }
.gx-crumbs a:hover { color: #00dba5; }
.gx-crumbs li:not(:last-child):after { content: "\203A"; padding-left: 10px; color: #9bb4ba; }
.gx-crumbs .active { color: #455f68; }

/* ---------- SECTION SHELL ---------- */
.gx-section { padding: 64px 0; }
.gx-section.alt { background: #f1f8f9; }
.gx-eyebrow {
    display: block;
    text-align: center;
    color: #00acdb;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
}
.gx-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #233a46;
    margin: 0 0 14px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}
.gx-title:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #2491d0, #00dba5);
}
.gx-lead {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 40px;
    color: #5b7178;
    font-size: 15.5px;
    line-height: 1.8;
}

/* ---------- FILTER ---------- */
ul#isotope-filter {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    text-align: center;
}
ul#isotope-filter li { display: inline-block; margin: 5px; }
ul#isotope-filter li a {
    display: inline-block;
    cursor: pointer;
    padding: 9px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #455f68;
    background: #eef5f6;
    border: 1px solid #e0ebec;
    transition: all .25s ease;
}
ul#isotope-filter li a:hover { color: #00879d; }
ul#isotope-filter li a.active {
    color: #fff;
    background: linear-gradient(90deg, #2491d0, #00dba5);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0,134,157,.25);
}

/* ---------- GRID ---------- */
#isotope-items { margin-bottom: 10px; }
#isotope-items .isotope-item { margin-bottom: 26px; }

.gx-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20,60,70,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.gx-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(20,60,70,.16);
}

.gx-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.gx-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.gx-card:hover .gx-media img { transform: scale(1.07); }

.gx-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,135,157,0) 40%, rgba(6,59,68,.55) 100%);
    opacity: 0;
    transition: opacity .3s ease;
}
.gx-card:hover .gx-overlay { opacity: 1; }
.gx-overlay i {
    width: 54px;
    height: 54px;
    line-height: 54px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #00879d;
    font-size: 20px;
    transform: scale(.8);
    transition: transform .3s ease;
}
.gx-card:hover .gx-overlay i { transform: scale(1); }

.gx-caption { padding: 16px 18px 18px; }
.gx-caption h3 {
    font-size: 16px;
    font-weight: 700;
    color: #233a46;
    margin: 0 0 6px;
}
.gx-caption p { font-size: 13px; color: #6a8087; margin: 0; line-height: 1.6; }

/* ---------- BEFORE / AFTER CARD ---------- */
.gx-ba .gx-media { aspect-ratio: 4 / 3; display: flex; }
.gx-ba-half {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
}
.gx-ba-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-ba-half + .gx-ba-half { border-left: 2px solid #fff; }
.gx-ba-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(6,59,68,.78);
    padding: 4px 10px;
    border-radius: 20px;
}
.gx-ba-half.after .gx-ba-tag { background: linear-gradient(90deg, #2491d0, #00dba5); }

/* ---------- CTA ---------- */
.gx-cta {
    background: linear-gradient(135deg, #00879d, #2491d0);
    color: #fff;
    padding: 50px 0;
}
.gx-cta .row { display: flex; flex-wrap: wrap; align-items: center; }
.gx-cta h2 { font-size: 28px; font-weight: 800; margin: 0 0 8px; text-transform: uppercase; }
.gx-cta p { margin: 0; opacity: .92; font-size: 15px; }
.gx-cta .btn {
    background: #fff;
    color: #00879d;
    font-weight: 700;
    border-radius: 30px;
    padding: 14px 30px;
    border: none;
}
.gx-cta .btn:hover { background: #063b44; color: #fff; }
.gx-cta-btn { text-align: right; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .gx-hero h1 { font-size: 36px; }
    .gx-title { font-size: 27px; }
}
@media (max-width: 767px) {
    .gx-hero { padding: 50px 15px 44px; }
    .gx-hero h1 { font-size: 29px; }
    .gx-hero p { font-size: 14px; }
    .gx-section { padding: 44px 0; }
    .gx-cta { text-align: center; }
    .gx-cta-btn { text-align: center; margin-top: 20px; }
}
