/* Styles for content-half-width-image-row.php (Half Width Image Row). */

.hwir{
  position: relative;
  overflow: hidden;
}

/* Large text style */
.hwir-text-large .largeText *{
  font-weight: 300 !important;
}

/* List */
.hwir-list{
  margin-top: 5px;
  margin-bottom: 20px;
}


/* ===== Full Bleed ===== */
.hwir-full-bleed .hwir-image{
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}
.hwir-full-bleed .hwir-content{
  background-color: #ffffff;
  padding-left: 10%;
  padding-right: 10%;
}
.hwir-padding-200{
  padding-top: 200px;
  padding-bottom: 200px;
}
.hwir-padding-150{
  padding-top: 150px;
  padding-bottom: 150px;
}
.hwir-padding-100{
  padding-top: 100px;
  padding-bottom: 100px;
}
.hwir-padding-50{
  padding-top: 50px;
  padding-bottom: 50px;
}
.hwir-padding-25{
  padding-top: 25px;
  padding-bottom: 25px;
}
.hwir-padding-0{
  padding-top: 0px;
  padding-bottom: 0px;
}


/* ===== Boxed ===== */
.hwir-boxed{
  padding-top: 48px;
  padding-bottom: 48px;
}
.hwir-boxed .hwir-image img{
  border-radius: 40px;
}


/* ===== Overlapping ===== */
.hwir-overlapping{
  padding-top: 140px;
  padding-bottom: 140px;
}
/* The wide background image covers 70% of the section on the image side. */
.hwir-overlap-image{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70%;
  background-repeat: no-repeat;
  background-size: cover;
}
.hwir-overlapping.hwir-image-right .hwir-overlap-image{
  left: auto;
  right: 0;
}
.hwir-overlapping .container{
  position: relative;
}
.hwir-box{
  padding: 48px;
}


/* Phone image (Full Bleed and Overlapping show a normal image below 992px) */
.hwir-mobile-image{
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
}


/*// Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) {
  /* Full Bleed: the image becomes a normal image on top */
  .hwir-full-bleed .hwir-image{
    background-image: none !important;
    min-height: 0;
  }
  .hwir-full-bleed .hwir-content{
    padding: 40px 5%;
  }

  /* Overlapping: no background image, image on top, full width */
  .hwir-overlapping{
    padding-top: 0px;
    padding-bottom: 0px;
  }
  .hwir-overlap-image{
    display: none;
  }
  .hwir-overlapping .container{
    width: 100%;
    max-width: 100%;
  }
  .hwir-overlapping .hwir-box{
    background-color: transparent !important;
    padding: 40px 5%;
  }
}

/*// Small devices (landscape phones, less than 768px)*/
@media (max-width: 767.98px) {
  .hwir-mobile-image{
    height: 300px;
  }
  .hwir-boxed .hwir-content{
    text-align: center;
  }
}

/* Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
  .hwir-mobile-image{
    height: 250px;
  }
  .hwir-full-bleed .hwir-content,
  .hwir-overlapping .hwir-box{
    padding: 30px 10%;
  }
}


/* =====  Collage and Dark card styles  ======== */

.hwir-collage .hwir-split,
.hwir-card .hwir-split {
  display: grid;
  align-items: center;
}

/* Photo on the right: swap the columns */
.hwir-image-right .hwir-media {
  order: 2;
}

.hwir-split h2 {
  margin: 16px 0 22px;
}
.hwir-description p {
  margin: 0 0 16px;
}
.hwir-description p:last-child {
  margin-bottom: 0;
}


/* -----  Collage: two overlapping photos with a number stamp  ----- */

.hwir-collage .hwir-split {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
}
.hwir-collage.hwir-image-right .hwir-split {
  grid-template-columns: 0.95fr 1.05fr;
}

.hwir-collage .hwir-media {
  position: relative;
  height: 640px;
}
.hwir-collage .hwir-photo-1 {
  position: absolute;
  left: 0;
  top: 0;
  width: 76%;
  height: 78%;
  object-fit: cover;
  border-radius: 2px;
}
.hwir-collage .hwir-photo-2 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 54%;
  object-fit: cover;
  border: 10px solid #f2eee6;
  border-radius: 2px;
}
.hwir-stamp {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 44%;
  padding: 20px 24px;
  background-color: #100f0e;
  color: #f2eee6;
}
.hwir-stamp b {
  display: block;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hwir-stamp span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(242, 238, 230, 0.72);
}

.hwir-collage .hwir-description p:first-child {
  font-size: 19px;
  line-height: 1.6;
}

/* Labeled details in two columns */
.hwir-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
  border-top: 1px solid #d3cbbf;
}
.hwir-details div {
  padding: 17px 16px 17px 0;
  border-bottom: 1px solid #d3cbbf;
  font-size: 15px;
  color: #46413b;
}
.hwir-details b {
  display: block;
  margin-bottom: 3px;
  font-family: "Katahdin Round", "Inter", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #796e65;
}

/* Note with a map pin (address) */
.hwir-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 15px;
  color: #46413b;
}
.hwir-note svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: #b45f06;
}
.hwir-note p {
  margin: 0;
}
.hwir-note a {
  font-size: 14px;
  font-weight: 600;
  color: #b45f06;
  border-bottom: 1px solid currentColor;
}
.hwir-note em {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: #796e65;
}


/* -----  Dark card: photo on one half, text on black  ----- */

.hwir-card .hwir-split {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
  background-color: #100f0e;
  border-radius: 2px;
  color: #f2eee6;
}
.hwir-card.hwir-ratio-wide .hwir-split {
  grid-template-columns: 1.2fr 0.8fr;
}

.hwir-card .hwir-media {
  position: relative;
  min-height: 440px;
}
.hwir-card .hwir-photo-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hwir-card.hwir-fit-contain .hwir-photo-1 {
  object-fit: contain;
  padding: 6px;
  background-color: #000000;
}

.hwir-card .hwir-body {
  padding: 56px 54px;
}
.hwir-card h2 {
  margin: 14px 0 18px;
  font-size: 52px;
}

/* Numbered list */
.hwir-steps {
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #2e2b27;
}
.hwir-steps li {
  position: relative;
  padding: 16px 0 16px 46px;
  border-bottom: 1px solid #2e2b27;
  font-size: 15px;
  color: rgba(242, 238, 230, 0.8);
}
.hwir-steps b {
  display: block;
  font-weight: 600;
  color: #f2eee6;
}
.hwir-step-number {
  position: absolute;
  left: 0;
  top: 18px;
  font-family: "Katahdin Round", "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #e3893a;
}

/* Orange price line */
.hwir-price {
  margin-bottom: 24px;
  font-family: "Katahdin Round", "Inter", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e3893a;
}
.hwir-price p {
  margin: 0;
  color: #e3893a;
}

.hwir-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Edge-to-edge card (e.g. Visit the studio) */
.hwir-card.hwir-card-full .hwir-split {
  min-height: 460px;
  border-radius: 0;
}
.hwir-card.hwir-card-full .hwir-photo-1 {
  filter: brightness(0.8);
}
.hwir-card.hwir-card-full .hwir-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
}
.hwir-card.hwir-card-full h2 {
  margin: 14px 0 20px;
}
.hwir-card.hwir-card-full .hwir-description p:first-child {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.55;
  color: #f2eee6;
}
.hwir-card.hwir-card-full .hwir-description p {
  font-size: 15px;
  color: rgba(242, 238, 230, 0.7);
}
.hwir-card.hwir-card-full .hwir-description {
  margin-bottom: 28px;
}

/* Graphic and label in the middle of the photo */
.hwir-pin {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.hwir-pin img {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
}
.hwir-pin span {
  padding: 8px 12px;
  background-color: rgba(16, 15, 14, 0.8);
  font-family: "Katahdin Round", "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #f2eee6;
}


/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .hwir-card h2 {
    font-size: 44px;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .hwir-collage .hwir-split,
  .hwir-collage.hwir-image-right .hwir-split,
  .hwir-card .hwir-split,
  .hwir-card.hwir-ratio-wide .hwir-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hwir-card .hwir-split,
  .hwir-card.hwir-ratio-wide .hwir-split {
    gap: 0;
  }
  .hwir-image-right .hwir-media {
    order: 0;
  }
  .hwir-card .hwir-media {
    min-height: 380px;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .hwir-collage .hwir-media {
    height: 420px;
  }
  .hwir-stamp {
    max-width: 64%;
    padding: 14px 16px;
  }
  .hwir-stamp b {
    font-size: 30px;
  }
  .hwir-details {
    grid-template-columns: 1fr;
  }
  .hwir-card .hwir-body,
  .hwir-card.hwir-card-full .hwir-body {
    padding: 38px 26px;
  }
  .hwir-card h2 {
    font-size: 36px;
  }
  .hwir-card.hwir-card-full .hwir-media {
    min-height: 280px;
  }
}


/* -----  Dark card: featured version (label above, logo, tags, wider photo)  ----- */

.hwir-above-label {
  display: block;
  margin: 0 0 18px;
}
.hwir-card.hwir-ratio-wider .hwir-split {
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 540px;
}
.hwir-card.hwir-ratio-wider .hwir-body {
  display: flex;
  flex-direction: column;
  padding: 50px 46px;
}
.hwir-card.hwir-ratio-wider h2 {
  margin: 0 0 16px;
  font-size: 49px;
}
.hwir-card .hwir-photo-1 {
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hwir-card.hwir-ratio-wider:hover .hwir-photo-1 {
  transform: scale(1.03);
}
.hwir-logo {
  display: block;
  align-self: flex-start;
  height: 46px;
  width: auto;
  margin: 22px 0 26px;
  filter: brightness(1.05);
}
.hwir-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 30px;
}
.hwir-tags span {
  padding: 7px 12px;
  font-size: 12.5px;
  color: rgba(242, 238, 230, 0.82);
  border: 1px solid #3a3631;
  border-radius: 30px;
}
.hwir-card.hwir-ratio-wider .hwir-buttons {
  margin-top: auto;
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .hwir-card.hwir-ratio-wider .hwir-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .hwir-card.hwir-ratio-wider .hwir-body {
    padding: 38px 26px;
  }
  .hwir-card.hwir-ratio-wider h2 {
    font-size: 36px;
  }
}
