/* =====================================================================
   PHOTO GALLERY — INTERNATIONAL CONFERENCES & FELICITATIONS
   Styles: public/css/gallery.css (app/Views/pages/gallery.php)
   Scoped strictly under .pga for luxury presentation.
   ===================================================================== */

.pga {
    --night: #12070a;
    --night-2: #1f0b10;
    --maroon: #8B1A1A;
    --gold: #C59B2B;
    --gold-hi: #F6DC98;
    --gold-soft: #E2B46A;
    --gold-grad: linear-gradient(135deg, #F6DC98 0%, #D9B048 38%, #C59B2B 62%, #8A6417 100%);
    --ivory: #FFF8EF;
    --cream: #FBF3E7;
    --ink: #241c19;
    --muted: #6a5d52;
    --border: #EFE3CF;
    --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    --sans: "Raleway", "Roboto", system-ui, sans-serif;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --shadow-card: 0 1px 2px rgba(60, 31, 18, .04), 0 16px 40px -16px rgba(60, 31, 18, .22);
    --shadow-lift: 0 2px 4px rgba(60, 31, 18, .05), 0 30px 64px -22px rgba(110, 20, 25, .38);

    --pga-facets-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23fff' stroke='%23fff' stroke-opacity='.10' stroke-width='.6'%3E%3Cpath d='M0 0L0 40L40 40Z' fill-opacity='0.050'/%3E%3Cpath d='M0 0L80 0L40 40Z' fill-opacity='0.110'/%3E%3Cpath d='M80 0L40 40L120 40Z' fill-opacity='0.020'/%3E%3Cpath d='M80 0L120 40L160 40Z' fill-opacity='0.080'/%3E%3Cpath d='M80 0L160 0L160 40Z' fill-opacity='0.140'/%3E%3Cpath d='M0 40L40 40L0 80Z' fill-opacity='0.040'/%3E%3Cpath d='M40 40L0 80L80 80Z' fill-opacity='0.090'/%3E%3Cpath d='M40 40L120 40L80 80Z' fill-opacity='0.010'/%3E%3Cpath d='M120 40L80 80L160 80Z' fill-opacity='0.120'/%3E%3Cpath d='M120 40L160 40L160 80Z' fill-opacity='0.060'/%3E%3Cpath d='M0 80L0 120L40 120Z' fill-opacity='0.030'/%3E%3Cpath d='M0 80L80 80L40 120Z' fill-opacity='0.100'/%3E%3Cpath d='M80 80L40 120L120 120Z' fill-opacity='0.070'/%3E%3Cpath d='M80 80L120 120L160 120Z' fill-opacity='0.130'/%3E%3Cpath d='M80 80L160 80L160 120Z' fill-opacity='0.020'/%3E%3Cpath d='M0 120L40 120L0 160Z' fill-opacity='0.080'/%3E%3Cpath d='M40 120L0 160L80 160Z' fill-opacity='0.050'/%3E%3Cpath d='M40 120L120 120L80 160Z' fill-opacity='0.110'/%3E%3Cpath d='M120 120L80 160L160 160Z' fill-opacity='0.030'/%3E%3Cpath d='M120 120L160 120L160 160Z' fill-opacity='0.090'/%3E%3C/g%3E%3C/svg%3E");

    font-family: var(--sans);
    color: var(--ink);
    background: var(--ivory);
    background-image: var(--pga-facets-light);
    overflow-x: clip;
}

.pga *, .pga *::before, .pga *::after { box-sizing: border-box; }
.pga img { max-width: 100%; display: block; }
.pga a { text-decoration: none; }

.pga-section { padding: clamp(68px, 8vw, 110px) 0; position: relative; }
.pga-head { text-align: center; max-width: 820px; margin: 0 auto clamp(36px, 4.5vw, 60px); }
.pga-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font: 600 12.5px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase;
    color: var(--maroon); margin: 0 0 16px;
}
.pga-eyebrow__line { width: 36px; height: 1px; background: var(--gold); }
.pga-title { font: 600 clamp(34px, 4.4vw, 54px)/1.1 var(--serif); color: var(--ink); margin: 0; }
.pga-title em { color: var(--maroon); font-style: italic; }
.pga-intro { font-size: 17px; line-height: 1.75; color: var(--muted); margin: 18px auto 0; max-width: 720px; }

/* 3D Liquid Buttons */
.pga-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
    font: 600 13.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
    isolation: isolate; overflow: hidden; white-space: nowrap; text-decoration: none !important;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), filter .3s;
}
.pga-btn:hover { filter: brightness(1.06) saturate(1.08); transform: translateY(-2px); }
.pga-btn--gold {
    color: #3b0d10 !important; text-shadow: 0 1px 0 rgba(255, 245, 215, .55);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 45%, rgba(90, 55, 0, 0) 60%, rgba(90, 55, 0, .3) 100%),
        linear-gradient(115deg, #8A6417 0%, #D9B048 16%, #FFF1C4 30%, #C59B2B 45%, #F6DC98 60%, #A77A1E 78%, #EBCB6E 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 1px rgba(110, 70, 10, .45),
        0 3px 0 #8A6417, 0 14px 30px -10px rgba(197, 155, 43, .8);
}
.pga-btn--ghost-dark {
    color: var(--maroon) !important; background: #fff;
    box-shadow: inset 0 0 0 1px var(--gold-soft), 0 4px 14px rgba(60, 31, 18, .08);
}

/* Gallery Grid */
.pga-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.pga-card {
    position: relative; border-radius: 20px; overflow: hidden; background: #fff;
    border: 1px solid rgba(197, 155, 43, 0.25); box-shadow: var(--shadow-card);
    transition: transform .4s var(--ease-out), box-shadow .4s;
}
.pga-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.pga-card__media { position: relative; overflow: hidden; }
.pga-card__media img {
    width: 100%; height: 280px; object-fit: cover; display: block;
    transition: transform 0.7s var(--ease-out);
}
.pga-card:hover .pga-card__media img { transform: scale(1.05); }
.pga-card__overlay {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(18, 7, 10, .45); opacity: 0; transition: opacity .35s;
    color: #fff; font-size: 14px; font-weight: 700;
}
.pga-card__overlay i {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold-grad); color: #3b0d10; font-size: 20px;
}
.pga-card:hover .pga-card__overlay { opacity: 1; }
.pga-card__caption {
    padding: 16px 20px; background: #fff; border-top: 1px solid rgba(197, 155, 43, 0.15);
}
.pga-card__caption p {
    margin: 0; font-size: 14px; line-height: 1.5; color: #433932; font-weight: 600;
}

/* Grand Cosmic Band */
.pga-band {
    position: relative; overflow: hidden; padding: clamp(68px, 8vw, 104px) 0;
    color: #fff; text-align: center;
    background:
        radial-gradient(900px 500px at 50% 20%, rgba(139, 26, 26, .7), transparent 70%),
        linear-gradient(180deg, var(--night-2), var(--night));
}
.pga-band > .container { position: relative; z-index: 2; }
.pga-band h2 { font: 600 clamp(32px, 4.4vw, 54px)/1.15 var(--serif); color: #fff; margin: 0 0 18px; }
.pga-band h2 em { color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
.pga-band p { font-size: 17px; line-height: 1.75; color: rgba(255, 244, 228, .8); max-width: 620px; margin: 0 auto 34px; }
.pga-band__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

@media (max-width: 1199px) { .pga-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
    .pga-grid { grid-template-columns: 1fr; }
    .pga-btn { width: 100%; justify-content: center; }
}
