/* =================================================================
   Graphic Links Widget — Mobile-First
   Shared across all sites. Theme CSS overrides for site-specific styling.
   Breakpoints: base (<769px), tablet (769px+), desktop (1025px+)
   ================================================================= */

/* --- Container --- */
.box-link-holder {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-items: center;
  box-sizing: border-box;
}

.box-link-holder.equal {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* --- Card base --- */
.box-link-box {
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  padding: 8px;
  border-radius: 25px;
  background-position: right;
  background-size: 50%;
  background-repeat: no-repeat;
  border: 5px solid #fff;
  margin: 1%;
}

.box-link-box.left {
  background-position: left;
}

.box-text-holder.left {
  text-align: right;
}

.box-link-box.top {
  background-position: top;
  background-size: auto 300px;
}

.box-text-holder.top {
  margin-top: 310px;
}

.box-link-box-anim:hover {
  background-size: 65%;
}

/* --- bsizer text styles --- */
.bsizer-1 .box-headline {
  margin-top: 50px;
  margin-bottom: 10px;
  font-size: 32px;
  color: var(--foreground);
}

.bsizer-1 .box-text {
  font-size: 18px;
  color: #888;
}

.bsizer-1 .box-link {
  display: inline-block;
  margin-top: 50px;
  padding: 10px;
  color: #fff;
  background-color: var(--accent);
  border-radius: 500px;
}

.bsizer-2 .box-headline {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 24px;
}

.bsizer-2 .box-text {
  font-size: 14px;
  color: #888;
}

.bsizer-2 .box-link {
  display: inline-block;
  margin-top: 50px;
  padding: 10px;
  color: #fff;
  background-color: var(--accent);
  border-radius: 500px;
}

.bsizer-3 .box-headline {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px;
}

.bsizer-3 .box-text {
  font-size: 12px;
  color: #888;
}

.bsizer-3 .box-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px;
  color: #fff;
  background-color: var(--accent);
  border-radius: 500px;
}

.bsizer-4 .box-headline {
  margin-top: 160px;
  margin-bottom: 10px;
  font-size: 20px;
}

.bsizer-4 .box-text {
  font-size: 12px;
  color: #888;
}

.bsizer-4 .box-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px;
  color: #fff;
  background-color: var(--accent);
  border-radius: 500px;
}

.bsizer-7 .box-headline {
  font-size: 18px;
  color: #888;
}

.bsizer-7 .box-text {
  font-size: 11px;
}

.bsizer-4.box-link-box {
  background-size: 200px;
  background-position: top;
}

/* --- bsizer layout: mobile-first (all stack full-width) --- */
.bsizer-1 {
  flex-basis: 100%;
  min-height: 200px;
}

.bsizer-2 {
  flex-basis: 100%;
  min-height: 200px;
}

.bsizer-3 {
  flex-basis: 100%;
  min-height: 200px;
}

.bsizer-4 {
  flex-basis: 100%;
  min-height: 240px;
}

.bsizer-5 {
  flex-basis: 100%;
  min-height: 150px;
}

.bsizer-6 {
  flex-basis: 100%;
  min-height: 150px;
}

.bsizer-7 {
  flex-basis: 100%;
  min-height: 150px;
}

.bsizer-8 {
  flex-basis: 100%;
  min-height: 150px;
}

/* --- Top-positioned background images --- */
.bsizer-6.box-link-box.top,
.bsizer-7.box-link-box.top {
  background-position: top;
  background-size: contain;
}

.text-bsizer-5.top {
  margin-top: 200px !important;
}

.text-bsizer-6.top {
  margin-top: 150px !important;
}

.text-bsizer-7.top {
  margin-top: 150px !important;
}

.text-bsizer-8.top {
  margin-top: 150px !important;
}

.top .box-text {
  text-align: center;
}

.text-bsizer-6 .box-headline {
  font-size: 20px;
}

box-link-box.top.bsizer-7 {
  background-size: auto 200px;
  text-align: center;
  border: 0;
}

.box-link-box.top.bsizer-5 {
  background-size: auto 200px;
  text-align: center;
  border: 0;
}

/* --- Fullsize variant --- */
.fullsize {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  background-size: cover;
  border-radius: 0;
  min-height: 200px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullsize:hover {
  background-color: rgba(0, 150, 215, 0.7);
  background-blend-mode: overlay;
}

/* --- Right/left-bigger layouts --- */
.right-bigger .bnum-3 {
  flex-basis: 45%;
  min-height: 300px;
  flex-grow: 2;
}

.right-bigger .bnum-1 {
  flex-basis: 45%;
  min-height: 150px;
}

.right-bigger .bnum-2 {
  flex-basis: 45%;
  min-height: 150px;
}

.left-bigger .bnum-1 {
  flex-basis: 45%;
  min-height: 300px;
  flex-grow: 2;
}

.left-bigger .bnum-2 {
  flex-basis: 45%;
  min-height: 150px;
}

.left-bigger .bnum-3 {
  flex-basis: 45%;
  min-height: 150px;
}

/* --- Navigation boxes --- */
.text-bsizer-5 {
  margin-top: 200px;
}

.box-navigation {
  display: flex;
}

.right-bnav {
  flex-basis: 70%;
  display: flex;
}

.left-bnav {
  flex-basis: 30%;
}

.nbox {
  aspect-ratio: 1/1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.bnavtitle {
  font-size: 24px;
  font-weight: 700;
  color: var(--foreground);
  display: inline-block;
  vertical-align: top;
  margin-top: 5px;
}

.bnavwedge {
  width: 80px;
  height: 50px;
  background-color: var(--accent);
  display: inline-block;
  margin-right: 15px;
}

.bnavhold {
  margin-bottom: 15px;
}

.nnum-1 {
  width: 25%;
}

.nnum-2 {
  width: 50%;
}

.nnum-3 {
  width: 25%;
}

.nnum-4 {
  width: 0;
}

/* --- Overhang: mobile base (no overlap) --- */
.overhang {
  margin-top: 0;
  background-color: transparent;
}

.overhang .box-link-box {
  border: none !important;
}

.box-text-holder.center {
  text-align: center;
}

.overhang .box-link-box-anim {
  transition: transform 0.3s ease-in-out;
  transform: translateX(0);
}

.overhang .box-link-box-anim:hover {
  transition: transform 0.3s ease-in-out;
  transform: translateX(-15px);
}

/* =================================================================
   TABLET (769px+) — multi-column layouts
   ================================================================= */
@media (min-width: 769px) {
  .bsizer-1 {
    flex-basis: 100%;
    min-height: 300px;
  }

  .bsizer-2 {
    flex-basis: 50%;
    min-height: 250px;
  }

  .bsizer-3 {
    flex-basis: 31%;
    min-height: 200px;
  }

  .bsizer-4 {
    flex-basis: 23%;
    min-height: 320px;
  }

  .bsizer-5 {
    flex-basis: 18%;
    min-height: 200px;
  }

  .bsizer-6 {
    flex-basis: 14%;
    min-height: 150px;
  }

  .bsizer-7 {
    flex-basis: 11%;
    min-height: 150px;
  }

  .bsizer-8 {
    flex-basis: 9%;
    min-height: 150px;
  }
}

/* =================================================================
   DESKTOP (1025px+) — overhang overlap restored
   ================================================================= */
@media (min-width: 1025px) {
  .overhang {
    margin-top: -100px;
  }
}
