﻿
/* ============================================
   SETEC ARENA 2026 — GALLERY
   ============================================ */

/* REMOVE INDEX HOMEPAGE BACKGROUND */

html, body {
    background: #050506 !important;
}

.arena-page.arena-gallery-page {
    --orange: #ff7900;
    width: 100%;
    min-height: 100vh;
    color: #fff;
    background: #050506 !important;
    background-image: none !important;
    background-attachment: scroll !important;
}

/* ============================================
   NAVIGATION
   ============================================ */

.arena-gallery-page .arena-header {
    height: 52px;
}

.arena-gallery-page .arena-header-inner {
    height: 52px;
}

.arena-gallery-page .arena-logo img {
    height: 38px;
    max-width: 150px;
}

.arena-gallery-page .arena-nav {
    gap: 32px;
}

.arena-gallery-page .arena-nav a {
    font-size: 12px;
}

.arena-gallery-page .arena-nav a.active::after,
.arena-gallery-page .arena-nav a:hover::after {
    bottom: 7px;
    height: 2px;
}

.ag-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 175px;
    height: 35px;
    color: #ff7900;
    background: #080809;
    border: 1px solid #ff7900;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    transition: background .2s;
}

.ag-top-btn:hover {
    color: #ff7900;
    background: #17100a;
}

/* ============================================
   HERO — ONE BACKGROUND, ONE LOGO
   ============================================ */

.arena-gallery-page .ag-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 210px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #050506;
    background-image: url('/Content/Images/galeryHero5.png');
    background-repeat: no-repeat;
    background-position: center 55%;
    background-size: cover;
}

/* FADE INTO THE GALLERY */

.arena-gallery-page .ag-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 45px;
    background: linear-gradient(to bottom,transparent,#08090b);
    pointer-events: none;
}

/* HERO CONTENT */

.ag-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 36% 64%;
    align-items: center;
    width: 100%;
    max-width: 1050px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* REAL LOGO */

.ag-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-hero-logo img {
    display: block;
    width: 135px;
    max-width: 100%;
    max-height: 165px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 15px #000);
}

/* TITLE */

.ag-hero-text {
    min-width: 0;
    text-align: center;
}

.ag-hero-text h1 {
    margin: 0;
    color: #fff;
    font: italic 900 clamp(45px,5vw,70px)/1 'Barlow Condensed',Impact,sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 4px 18px #000;
}

.ag-hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    white-space: nowrap;
    text-shadow: 0 2px 10px #000;
}

.ag-line {
    display: block;
    flex-shrink: 0;
    width: 32px;
    height: 2px;
    background: #ff7900;
    box-shadow: 0 0 8px rgba(255,121,0,.6);
}

/* ============================================
   GALLERY CONTENT
   ============================================ */

.ag-section {
    position: relative;
    padding: 10px 24px 55px;
    background: #08090b;
}

.ag-container {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.ag-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255,121,0,.45);
}

.ag-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #ff7900;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.ag-heading h2 {
    margin: 0;
    color: #fff;
    font: 900 34px/1 'Barlow Condensed',Impact,sans-serif;
}

.ag-heading h2 span {
    color: #ff7900;
}

.ag-count {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 3px;
    color: #ccc;
    font-size: 12px;
    white-space: nowrap;
}

.ag-count i {
    color: #ff7900;
    font-size: 19px;
}

/* ============================================
   PHOTOS
   ============================================ */

.ag-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-auto-rows: 185px;
    grid-auto-flow: dense;
    gap: 10px;
}

.ag-photo {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 2px;
    background: #b65b12;
    clip-path: polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
    transition: background .25s,transform .25s;
}

/* FEATURED PHOTO SIZES */

.ag-photo:nth-child(9n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

.ag-photo:nth-child(9n+5) {
    grid-column: span 2;
}

.ag-photo:nth-child(9n+8) {
    grid-row: span 2;
}

.ag-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    clip-path: polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px);
    transition: transform .4s,filter .3s;
}

.ag-photo-overlay {
    position: absolute;
    inset: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 25px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.ag-photo:hover {
    background: #ff9900;
    transform: translateY(-2px);
}

.ag-photo:hover img {
    transform: scale(1.05);
    filter: brightness(.85);
}

.ag-photo:hover .ag-photo-overlay {
    opacity: 1;
}

/* ============================================
   FULLSCREEN VIEWER
   ============================================ */

.ag-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.96);
    backdrop-filter: blur(10px);
}

.ag-lightbox.show {
    display: flex;
}

.ag-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100% - 150px);
    max-width: 1500px;
    height: 100%;
    padding: 55px 0 30px;
}

.ag-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 35px);
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(255,121,0,.35);
}

#agLightboxCount {
    margin-top: 15px;
    color: #ddd;
    font-size: 13px;
    letter-spacing: 2px;
}

.ag-close,
.ag-prev,
.ag-next {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    color: #fff;
    background: #111;
    border: 1px solid rgba(255,121,0,.5);
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
}

.ag-close:hover,
.ag-prev:hover,
.ag-next:hover {
    background: #ff7900;
    color: #111;
}

.ag-close { top: 20px; right: 25px; }
.ag-prev { top: 50%; left: 25px; transform: translateY(-50%); }
.ag-next { top: 50%; right: 25px; transform: translateY(-50%); }

/* EMPTY GALLERY */

.ag-empty {
    padding: 75px 20px;
    text-align: center;
    color: #aaa;
}

.ag-empty i { color: #ff7900; font-size: 40px; }
.ag-empty h2 { color: #fff; font: 800 35px 'Barlow Condensed',sans-serif; }
.ag-empty p { font-size: 13px; }

/* ============================================
   TABLET
   ============================================ */

@media (max-width: 1050px) {
    .arena-gallery-page .arena-header { height: auto; }

    .arena-gallery-page .arena-header-inner {
        height: auto;
        grid-template-columns: minmax(0,1fr) auto;
        grid-template-rows: 55px 40px;
    }

    .arena-gallery-page .arena-logo { grid-column: 1; grid-row: 1; }
    .arena-gallery-page .arena-nav-btn-wrap { grid-column: 2; grid-row: 1; }
    .arena-gallery-page .arena-nav { grid-column: 1 / -1; grid-row: 2; gap: 24px; }

    .arena-gallery-page .ag-hero { height: 190px; }
    .ag-hero-logo img { width: 120px; }
    .ag-hero-text h1 { font-size: 56px; }

    .ag-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
        grid-auto-rows: 155px;
    }
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 700px) {
    .arena-gallery-page .arena-header-inner {
        width: calc(100% - 32px);
        grid-template-rows: 54px 42px;
    }

    .arena-gallery-page .arena-logo img { height: 33px; }
    .arena-gallery-page .arena-nav { gap: 12px; }
    .arena-gallery-page .arena-nav a { font-size: 10px; }

    .ag-top-btn {
        width: 130px;
        height: 35px;
        gap: 8px;
        font-size: 10px;
    }

    .arena-gallery-page .ag-hero {
        height: 150px;
        background-position: center center;
    }

    .ag-hero-inner {
        grid-template-columns: 36% 64%;
        padding: 0 12px;
    }

    .ag-hero-logo img { width: 90px; }
    .ag-hero-text h1 { font-size: 38px; letter-spacing: 1px; }
    .ag-hero-subtitle { gap: 5px; font-size: 8px; letter-spacing: 1px; margin-top: 7px; }
    .ag-line { width: 12px; }

    .ag-section { padding: 12px 12px 40px; }
    .ag-heading h2 { font-size: 26px; }
    .ag-count { font-size: 10px; gap: 5px; }

    .ag-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        grid-auto-rows: 130px;
        gap: 7px;
    }

    .ag-photo:nth-child(9n+8) { grid-row: span 1; }

    .ag-lightbox-content {
        width: calc(100% - 24px);
        padding: 65px 0;
    }

    .ag-close { top: 12px; right: 12px; }
    .ag-prev, .ag-next { width: 35px; height: 42px; }
    .ag-prev { left: 5px; }
    .ag-next { right: 5px; }
}

@media (max-width: 420px) {
    .arena-gallery-page .arena-nav { gap: 9px; }
    .arena-gallery-page .arena-nav a { font-size: 9px; }
    .ag-grid { grid-auto-rows: 115px; gap: 6px; }
    .ag-hero-logo img { width: 75px; }
    .ag-hero-text h1 { font-size: 32px; }
    .ag-heading h2 { font-size: 23px; }
    .ag-count { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .ag-photo,
    .ag-photo img,
    .ag-photo-overlay {
        transition: none;
    }
}

/* MOBILE SWIPE */
.ag-lightbox-content {
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
}

.ag-lightbox-content img {
    -webkit-user-drag: none;
}

@media (max-width: 700px) {
    .ag-prev,
    .ag-next {
        display: none;
    }
}

/* PHOTO POSITION EDITOR — LOCAL DESIGN TOOL */
.ag-editor {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.85);
}

.ag-editor.show { display: flex; }

.ag-editor-panel {
    width: 100%;
    max-width: 650px;
    padding: 22px;
    background: #121316;
    border: 1px solid #ff7900;
    border-radius: 8px;
}

.ag-editor-header,
.ag-editor-controls,
.ag-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ag-editor-header strong {
    color: #fff;
    font: 800 23px 'Barlow Condensed',sans-serif;
}

#agEditorClose {
    color: #fff;
    font-size: 26px;
    background: none;
    border: 0;
    cursor: pointer;
}

.ag-editor-preview {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 20px 0 12px;
    overflow: hidden;
    background: #08090b;
    cursor: grab;
    touch-action: none;
}

.ag-editor-preview:active { cursor: grabbing; }

.ag-editor-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

.ag-editor-controls {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 18px;
}

.ag-editor-actions button {
    padding: 11px 18px;
    border: 1px solid #ff7900;
    background: #101010;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

#agEditorCopy {
    background: #ff7900;
    color: #111;
}
