@charset "utf-8";
/* CSS Document */

ul.tabs {
    margin: 0;
    padding: 0;
    padding-right: 70px;
    float: right;
    list-style: none;
    height: 32px;
    width: 100%;
}

ul.tabs li {
    float: right;
    margin: 0;
    cursor: pointer;
    padding: 0px 10px;
    height: 31px;
    line-height: 31px;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #29235c;
    overflow: hidden;
    position: relative;
}

ul.tabs li:hover {
    color: #a81613;
}

ul.tabs li.active {
    background: #F6F6F6;
    color: #a81613;
}

.tab_container {
    float: right;
    clear: both;
    width: 100%;
}

.tab_content {
    padding-top: 20px;
    padding-bottom: 0;
    padding-left: 90px;
    padding-right: 0;
    font-size: 1.2em;
    display: none;
}

#container {
    width: 960px;
    margin: 0 auto;
}


/* ======================================================== */
/* === ROOT === */
.gallery-tabs {
  max-width: 1200px;
  margin-top: 10px; 
}

/* === HIDE RADIOS (visually hidden but accessible) === */
.gallery-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Show focus indicator on label when radio is focused */
.gallery-tabs input[type="radio"]:focus + label {
  outline: 2px solid #29235c;
  outline-offset: 2px;
}

/* === TAB LABELS === */
.gallery-tabs label {
  display: inline-block;
  padding: 10px 18px;
  cursor: pointer;
  /* background: #eee; */
  border-radius: 6px 6px 6px 6px;
  /* font-weight: 600; */

    font-family: Tahoma, Geneva, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #29235c;
}

.gallery-tabs input:checked + label {
  background: #29235c;
  color: #ffffff;
}

/* === PANELS === */
/* Container */
.tab-panels {
  display: grid;
  padding-bottom: 60px;
}

/* Panels stack in same grid cell */
.tab-panel {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: none;
}

/* ACTIVE PANEL MAPPING */
#tab-camp-cope:checked ~ .tab-panels .tab-panel:nth-child(1),
#tab-daw:checked       ~ .tab-panels .tab-panel:nth-child(2),
#tab-itc:checked       ~ .tab-panels .tab-panel:nth-child(3),
#tab-nade:checked      ~ .tab-panels .tab-panel:nth-child(4),
#tab-camp-hope:checked      ~ .tab-panels .tab-panel:nth-child(5) {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  display: block;
}

/*============= FOR MOSAIC ===================== */

.compact-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 185px);
  gap: 10px;
  max-width: 100%;
}

.gimage.hero {
  grid-row: span 2; /* Takes up 2 rows */
  grid-column: span 1; /* Takes up 1 column */
  height: 100%;
}

.gimage {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

/* Thumbnails */
.compact-gallery .tb {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  width: 100%;
  height: 100%;
}

/* Hide thumbnails after the 5th */
.compact-gallery > a:nth-child(n + 6) {
  display: none;
}

.more-trigger {
  position: relative;
}

.more-overlay {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

/* Show overlay ONLY if there are more than 5 images */
.compact-gallery > a:nth-child(6) ~ .more-trigger .more-overlay {
  display: flex;
}

/* Dynamic +N text */
.compact-gallery[data-total]:has(> a:nth-child(6)) .more-overlay::after {
  content: "+" attr(data-total) " MORE";
}

.more-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  border-radius: 6px;
}

.more-overlay::after {
  content: "+" attr(data-more) " MORE";
}