/* =========================================================
   MARGINAL — GALLERY PAGE
   File: assets/css/style-gallery.css
   ========================================================= */

.page-banner{
  width:100%;
  height:320px;
  min-height:320px;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  color:#fff;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

.page-banner-gallery{
  background-image:url("../images/banners/gallery.jpg");
  background-position:center 52%;
}

.page-banner::before{
  position:absolute;
  inset:0;
  content:"";
  background:linear-gradient(
    90deg,
    rgba(6,36,52,.54) 0%,
    rgba(6,36,52,.28) 38%,
    rgba(6,36,52,.07) 64%,
    rgba(6,36,52,0) 100%
  );
}

.page-banner-inner{
  position:relative;
  z-index:1;
  padding:34px 0 30px;
}

.page-banner h1{
  max-width:820px;
  margin:0;
  font-family:"Barlow Condensed",Arial,sans-serif;
  font-size:clamp(3rem,5.2vw,5rem);
  font-weight:800;
  line-height:.88;
  letter-spacing:-.025em;
  text-transform:uppercase;
  text-shadow:0 3px 18px rgba(4,25,38,.28);
}

.page-title-line,
.page-title-accent{
  display:block;
}

.page-title-line{color:#fff}

.page-title-accent{
  margin-top:6px;
  color:#44bdf7;
}

.page-banner-rule{
  display:block;
  width:76px;
  height:3px;
  margin-top:18px;
  background:#44bdf7;
}

.page-banner-text{
  max-width:650px;
  margin:18px 0 0;
  color:rgba(255,255,255,.96);
  font-size:1rem;
  line-height:1.55;
  text-shadow:0 2px 12px rgba(4,25,38,.28);
}

.gallery-page{
  padding-top:82px;
}

.gallery-head{
  align-items:flex-end;
}

.gallery-notice{
  margin-top:34px;
  padding:22px 26px;
  border-left:5px solid var(--ocean);
  border-radius:14px;
  background:#eefaff;
}

.gallery-notice strong{
  display:block;
  color:var(--ocean);
  font-size:.72rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.gallery-notice p{
  margin:7px 0 0;
  color:#526371;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  grid-auto-flow:dense;
  gap:18px;
  margin-top:38px;
}

.gallery-item{
  position:relative;
  min-height:280px;
  overflow:hidden;
  border-radius:20px;
  background:#dceff7;
  box-shadow:0 14px 30px rgba(23,63,87,.10);
}

.gallery-item.wide{grid-column:span 8}
.gallery-item.tall{
  grid-column:span 4;
  grid-row:span 2;
  min-height:578px;
}
.gallery-item.third{grid-column:span 4}
.gallery-item.half{grid-column:span 6}
.gallery-item.full{grid-column:span 12;min-height:420px}

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

.gallery-item:hover img{
  transform:scale(1.035);
}

.gallery-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:44px 22px 20px;
  color:#fff;
  background:linear-gradient(transparent,rgba(5,31,45,.88));
}

.gallery-caption strong{
  display:block;
  font-family:"Barlow Condensed",Arial,sans-serif;
  font-size:1.7rem;
  line-height:1;
  text-transform:uppercase;
}

.gallery-caption small{
  display:block;
  margin-top:7px;
  color:rgba(255,255,255,.78);
  font-size:.78rem;
}

.gallery-future{
  margin-top:32px;
  padding:34px;
  border-radius:24px;
  color:#fff;
  background:linear-gradient(135deg,var(--navy),#0b6688);
  box-shadow:var(--shadow);
}

.gallery-future h3{
  color:#fff;
  font-size:3rem;
}

.gallery-future p{
  max-width:780px;
  margin:14px 0 0;
  color:rgba(255,255,255,.82);
}

.gallery-file-guide{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:24px;
}

.gallery-file-guide span{
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  color:rgba(255,255,255,.88);
  background:rgba(255,255,255,.07);
  font-size:.8rem;
  text-align:center;
}

@media(max-width:980px){
  .gallery-item.wide,
  .gallery-item.half,
  .gallery-item.third{
    grid-column:span 6;
  }

  .gallery-item.tall{
    grid-column:span 6;
  }

  .gallery-file-guide{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:700px){
  .page-banner{
    height:300px;
    min-height:300px;
    background-position:62% center;
  }

  .page-banner::before{
    background:rgba(7,37,54,.60);
  }

  .page-banner-inner{
    padding:28px 0;
  }

  .page-banner h1{
    font-size:clamp(2.7rem,12vw,4.2rem);
  }

  .page-banner-text{
    max-width:100%;
    font-size:.9rem;
  }

  .gallery-grid{
    grid-template-columns:1fr;
  }

  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall,
  .gallery-item.third,
  .gallery-item.half,
  .gallery-item.full{
    grid-column:auto;
    grid-row:auto;
    min-height:320px;
  }

  .gallery-file-guide{
    grid-template-columns:1fr;
  }

  .gallery-future{
    padding:24px;
  }
}
