/**
 * Author: Shadow Themes
 * Author URL: https://shadow-themes.com
 */

/* TABLET: Landscape 
   ================= */
@media only screen and (max-width: 1200px) {
  /* === PSWP === */
  .pswp__button,
  .pswp__ui--fit .pswp__top-bar button.pswp__button {
    width: 48px;
    height: 48px;
  }

  /* === Grid === */
  .stg-row > div[class*="periwin-t-grid"],
  [class*="periwin-t-grid"] {
    display: grid;
    grid-column-gap: var(--stg-gap);
    grid-row-gap: var(--stg-gap);
  }
  .periwin-t-grid-1col {
    grid-template-columns: repeat(1, 1fr);
  }
  .periwin-t-grid-2cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .periwin-t-grid-3cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .periwin-t-grid-4cols {
    grid-template-columns: repeat(4, 1fr);
  }
  .periwin-t-grid-5cols {
    grid-template-columns: repeat(5, 1fr);
  }
  .periwin-t-grid-6cols {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Fullwidth Sections */
  section.t-is-fullwidth {
    max-width: 100svw;
    --periwin-fw-spacing: calc(0.5 * (100vw - var(--stg-container-width)));
    margin-left: calc(-1 * var(--periwin-fw-spacing));
    margin-right: calc(-1 * var(--periwin-fw-spacing));
    padding-left: var(--periwin-fw-spacing);
    padding-right: var(--periwin-fw-spacing);
  }
  section.t-is-fullwidth.t-is-stretched {
    padding-left: 0;
    padding-right: 0;
  }
  section.t-is-fullwidth.t-is-stretched > .t-is-boxed {
    --periwin-fw-spacing: calc(0.5 * (100vw - var(--stg-container-width)));
    padding-left: var(--periwin-fw-spacing);
    padding-right: var(--periwin-fw-spacing);
  }

  /* Sections Spacing */
  section[data-tp-padding="none"] {
    padding-top: 0;
    padding-bottom: 0;
  }
  section[data-tp-padding="top"] {
    padding-bottom: 0;
  }
  section[data-tp-padding="bottom"] {
    padding-top: 0;
  }
  section[data-tp-padding="small"] {
    padding: calc(0.5 * var(--periwin-section-gap)) 0;
  }

  /* === CTA BLOCKS === */
  .periwin-masked-cta .periwin-masked-content {
    max-width: 30%;
  }
  .periwin-masked-cta .periwin-cta-title {
    max-width: 80%;
  }
  .stg-cta-with-image {
    --this-spacing: var(--stg-large-gap);
  }
  [class*="stg-col-"] > div.periwin-offset-image {
    width: calc(100% - var(--this-offset) - var(--this-spacing));
  }

  /* === CONTACTS PAGE === */
  .periwin-framed-socials a {
    width: 36px;
    height: 36px;
  }
  iframe.periwin-google-map {
    max-height: 309px;
  }

  /* === PORTFOLIO === */
  .periwin-slider-nav.on-sides {
    top: calc(50% - 36px);
  }
  .periwin-slider-nav.on-sides a {
    width: 48px;
    height: 72px;
  }
  .periwin-next-post.periwin-icon-link .periwin-icon-wrap {
    width: 128px;
    height: 128px;
  }
  .periwin-next-post .periwin-icon {
    width: 36px;
    height: 36px;
  }

  /* === PSWP === */
  button.pswp__button.pswp__button--close,
  .pswp__top-bar button.pswp__button,
  .pswp__ui--fit .pswp__top-bar button.pswp__button {
    right: var(--stg-small-gap);
    top: var(--stg-small-gap);
    position: absolute;
  }
}

/* MOBILE MENU
   =========== */
@media only screen and (max-width: 960px) {
  .periwin-active-menu-ind,
  .periwin-header-inner {
    display: none;
  }
  .periwin-mobile-header-inner {
    display: flex;
    min-height: 44px;
    justify-content: space-between;
    align-items: center;
    padding: var(--periwin-header-spacing) var(--stg-gap);
    width: 100%;
  }
  .periwin-mobile-menu-toggler {
    width: 44px;
    height: 44px;
    background: var(--periwin-s-accent);
    transition: background-color 0.3s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
  }
  .periwin-mobile-menu-toggler::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    display: block;
    border: 1px solid var(--periwin-s-accented-text);
    opacity: 0.15;
    border-radius: inherit;
    transition: opacity 0.3s;
    will-change: opacity;
    z-index: 1;
  }
  /* .periwin-mobile-menu-toggler i {
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 3;
  } */
  .periwin-mobile-menu-toggler span {
    background: var(--periwin-s-accented-text);
    width: 18px;
    height: 2px;
    border-radius: 2px;
    display: block;
    position: absolute;
    left: 11px;
    transform-origin: 0 50%;
    transition: transform 0.3s, background-color 0.3s;
    will-change: transform;
    z-index: 5;
  }
  .periwin-mobile-menu-toggler span:nth-child(1) {
    top: calc(50% - 7px);
  }
  .periwin-mobile-menu-toggler span:nth-child(2) {
    top: calc(50% - 1px);
    transform-origin: 50% 50%;
  }
  .periwin-mobile-menu-toggler span:nth-child(3) {
    top: calc(50% + 5px);
    transform: scale(0.667, 1);
  }

  /* Menu Toggler close state */
  .show-menu .periwin-mobile-menu-toggler {
    background: transparent;
  }
  .show-menu .periwin-mobile-menu-toggler::before {
    opacity: 1;
  }
  .show-menu .periwin-mobile-menu-toggler span:nth-child(1) {
    transform: rotate(45deg) scale(1.35, 1) translate(-1px, -2px);
    background-color: var(--periwin-s-heading);
  }
  .show-menu .periwin-mobile-menu-toggler span:nth-child(2) {
    transform: scale(0, 1);
    background-color: var(--periwin-s-heading);
  }
  .show-menu .periwin-mobile-menu-toggler span:nth-child(3) {
    transform: rotate(-45deg) scale(1.35, 1) translate(-1px, 2px);
    background-color: var(--periwin-s-heading);
  }

  /* Mobile Menu Container */
  .periwin-mobile-nav {
    display: block;
  }
  .show-menu .periwin-mobile-nav {
    transform: translate(0);
    pointer-events: all;
  }
  body.show-menu.is-unloading .periwin-mobile-nav {
    transform: translateX(100%);
    pointer-events: none;
  }
  .periwin-mobile-nav::-webkit-scrollbar {
    width: 0;
  }
  .periwin-mobile-nav::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to top, transparent, var(--periwin-s-border));
  }
  .periwin-mobile-nav::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      90deg,
      transparent 25%,
      var(--periwin-s-body-bg) 100%
    );
  }

  /* Mobile Menu */
  .periwin-mobile-menu {
    padding: var(--stg-large-gap);
    margin: 0;
    position: relative;
    z-index: 5;
  }
  .periwin-mobile-menu > li.current-menu-parent > a::before,
  .periwin-mobile-menu > li.current-menu-item > a::before,
  .periwin-mobile-menu > li.current-menu-ancestor > a::before,
  .periwin-mobile-menu .sub-menu > li.current-menu-parent > a::before,
  .periwin-mobile-menu .sub-menu > li.current-menu-item > a::before,
  .periwin-mobile-menu .sub-menu > li.current-menu-ancestor > a::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--stg-large-gap));
    top: 50%;
    display: block;
    width: var(--stg-gap);
    height: 2px;
    border-radius: 0 2px 2px 0;
    background: var(--periwin-s-heading);
  }
  .periwin-mobile-menu .sub-menu > li.current-menu-parent > a::before,
  .periwin-mobile-menu .sub-menu > li.current-menu-item > a::before,
  .periwin-mobile-menu .sub-menu > li.current-menu-ancestor > a::before {
    opacity: 1;
    width: var(--stg-small-gap);
    left: calc(-1 * var(--stg-gap) + 2px);
    transform: translateY(-1px);
  }
  .periwin-mobile-menu a {
    color: var(--periwin-c-menu);
    display: block;
    position: relative;
    padding: 16px 0;
  }

  .periwin-mobile-menu .sub-menu {
    padding-left: var(--stg-gap);
    position: relative;
    display: none;
  }
  .periwin-mobile-menu .sub-menu a {
    padding: 12px 0;
  }
  .periwin-mobile-menu .sub-menu::before {
    content: "";
    width: 2px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--periwin-s-heading);
    opacity: 0.15;
    border-radius: 2px;
  }
  .periwin-mobile-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--periwin-t-menu-ff);
    font-weight: var(--periwin-t-menu-fw);
    font-size: var(--periwin-t-menu-fs);
    line-height: var(--periwin-t-menu-lh);
    position: relative;
  }
  .periwin-mobile-menu ul.sub-menu li {
    font-family: var(--periwin-t-submenu-ff);
    font-weight: var(--periwin-t-submenu-fw);
    font-size: var(--periwin-t-submenu-fs);
    line-height: var(--periwin-t-submenu-lh);
  }

  .periwin-mobile-menu li.current-menu-parent > a,
  .periwin-mobile-menu li.current-menu-item > a,
  .periwin-mobile-menu li.current-menu-ancestor > a {
    color: var(--periwin-c-menu-active);
  }

  .periwin-mobile-menu li.menu-item-has-children > a::after {
    content: "";
    width: var(--periwin-t-menu-fs);
    height: var(--periwin-t-menu-fs);
    background: var(--periwin-c-menu);
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    vertical-align: middle;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    -webkit-mask-image: var(--icon-chevron-down);
    mask-image: var(--icon-chevron-down);
    transform: translateY(-1px) rotate(-90deg);
    position: absolute;
    right: -24px;
    width: 36px;
    height: 36px;
    top: calc(50% - 18px);
  }
  .periwin-mobile-menu li.current-menu-parent.menu-item-has-children > a::after,
  .periwin-mobile-menu li.current-menu-item.menu-item-has-children > a::after,
  .periwin-mobile-menu
    li.current-menu-ancestor.menu-item-has-children
    > a::after {
    background: var(--periwin-c-menu-active);
  }
  .periwin-mobile-menu li.menu-item-has-children > a.is-active::after {
    transform: translateY(-1px) rotate(0deg);
  }

  /* Divider */
  ul.periwin-mobile-menu li.periwin-menu-divider {
    position: relative;
    padding: 12px 0;
    height: 1px;
    pointer-events: none;
  }
  ul.periwin-mobile-menu li.periwin-menu-divider::after {
    content: "";
    width: 100%;
    height: 1px;
    display: block;
    background: var(--periwin-s-heading);
    position: absolute;
    left: 0;
    top: 12px;
    opacity: 0.1;
  }

  /* Overlay */
  .periwin-mobile-menu-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 86;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    will-change: opacity;
    background: var(--periwin-s-nav);
  }
  .show-menu .periwin-mobile-menu-overlay {
    pointer-events: all;
    opacity: 0.5;
  }
}

/* MOBILE GRID
   =========== */
@media only screen and (max-width: 960px) {
  .periwin-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-gap: var(--stg-gap);
    grid-auto-flow: row;
  }
  .periwin-bento-grid .is-medium {
    overflow: hidden;
  }
  /* Type 01 */
  .periwin-bento-grid .is-large:first-child {
    grid-area: 1 / 1 / 3 / 3;
  }
  .periwin-bento-grid .is-medium:nth-child(2) {
    grid-area: 3 / 1 / 4 / 3;
  }
  /* Type 02 */
  .periwin-bento-grid .is-medium:last-child {
    grid-area: 4 / 1 / 5 / 3;
  }
  /* Type 03 */
  .periwin-bento-grid .is-medium:first-child {
    grid-area: 1 / 1 / 2 / 3;
  }
  .periwin-bento-grid .is-large:last-child {
    grid-area: 3 / 1 / 5 / 3;
  }
  /* Type 04 */
  .periwin-bento-grid .is-medium:nth-child(3) {
    grid-area: 2 / 1 / 3 / 3;
  }
}

/* TABLET: Portrait Only
   ===================== */
@media only screen and (min-width: 740px) and (max-width: 960px) {
  .periwin-large-text.periwin-tp-normal-text {
    font-size: var(--periwin-t-content-fs);
    line-height: var(--periwin-t-content-lh);
    letter-spacing: var(--periwin-t-content-ls);
    font-weight: var(--periwin-t-content-fw);
  }

  /* Fullwidth Sections */
  section.tp-is-fullwidth {
    max-width: 100svw;
    --periwin-fw-spacing: calc(0.5 * (100vw - var(--stg-container-width)));
    margin-left: calc(-1 * var(--periwin-fw-spacing));
    margin-right: calc(-1 * var(--periwin-fw-spacing));
    padding-left: var(--periwin-fw-spacing);
    padding-right: var(--periwin-fw-spacing);
  }
  section.tp-is-fullwidth.tp-is-stretched {
    padding-left: 0;
    padding-right: 0;
  }
  section.tp-is-fullwidth.tp-is-stretched > .tp-is-boxed {
    --periwin-fw-spacing: calc(0.5 * (100vw - var(--stg-container-width)));
    padding-left: var(--periwin-fw-spacing);
    padding-right: var(--periwin-fw-spacing);
  }

  /* Grid Portfolio */
  .periwin-tp-centered-last-item.periwin-tp-grid-2cols
    > div:nth-child(odd):last-child {
    transform: translateX(calc(50% + 0.5 * var(--stg-gap)));
  }

  /* Icon Boxes */
  .periwin-icon-box .periwin-box-icon {
    width: 48px;
    height: 48px;
  }
  .periwin-icon-box i {
    width: 24px;
    height: 24px;
  }
  .periwin-icon-box h4 {
    padding-right: calc(48px + var(--stg-small-gap));
  }
}

/* TABLET: Portrait
   ================ */
@media only screen and (max-width: 960px) {
  /* === Grid === */
  .stg-row > div[class*="periwin-tp-grid"],
  [class*="periwin-tp-grid"] {
    display: grid;
    grid-column-gap: var(--stg-gap);
    grid-row-gap: var(--stg-gap);
  }
  .periwin-tp-grid-1col {
    grid-template-columns: repeat(1, 1fr);
  }
  .periwin-tp-grid-2cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .periwin-tp-grid-3cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .periwin-tp-grid-4cols {
    grid-template-columns: repeat(4, 1fr);
  }
  .periwin-tp-grid-5cols {
    grid-template-columns: repeat(5, 1fr);
  }
  .periwin-tp-grid-6cols {
    grid-template-columns: repeat(6, 1fr);
  }
  .periwin-tp-stretch-last-item.periwin-tp-grid-2cols
    > div:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
  .periwin-tp-stretch-last-item.periwin-tp-grid-2cols
    > div:nth-child(odd):last-child.stg-aspect-square,
  .periwin-tp-stretch-last-item.periwin-tp-grid-2cols
    > div:nth-child(odd):last-child
    .stg-aspect-square {
    aspect-ratio: 2/1;
  }

  /* Sections Spacing */
  section[data-tp-padding="none"] {
    padding-top: 0;
    padding-bottom: 0;
  }
  section[data-tp-padding="top"] {
    padding-bottom: 0;
  }
  section[data-tp-padding="bottom"] {
    padding-top: 0;
  }
  section[data-tp-padding="small"] {
    padding: calc(0.5 * var(--periwin-section-gap)) 0;
  }

  /* === Home Hero Sections === */
  /* Type 01 */
  .periwin-hero-type01 h1.periwin-page-title {
    font-size: var(--periwin-t-h2-fs);
    letter-spacing: var(--periwin-t-h2-ls);
    line-height: var(--periwin-t-h2-lh);
  }
  .periwin-hero-type01 .periwin-masked-content {
    width: 80px;
    height: 80px;
  }
  .periwin-hero-type01 .periwin-masked-content a.periwin-square-button {
    width: 68px;
    height: 68px;
  }
  .periwin-hero-type01 .periwin-masked-content a span {
    width: 24px;
    height: 24px;
  }

  /* Type 02 */
  .periwin-hero-type02 > .stg-row > .stg-col-6:first-child {
    position: relative;
    z-index: 5;
  }
  .periwin-hero-type02 .periwin-page-title {
    padding: 0;
    margin-bottom: var(--stg-gap);
  }
  .periwin-hero-type02 .stg-row.stg-no-gap > div.stg-tp-offset-6 {
    margin: -70% 0 0 50%;
    position: relative;
    z-index: 3;
  }
  .periwin-hero-type02 .stg-col-4 > img {
    margin-left: var(--stg-gap);
  }

  /* Type 03 */
  .periwin-hero-type03 .periwin-hero-title-wrap {
    flex-direction: column;
  }
  .periwin-hero-type03 .periwin-hero-title-wrap h1.periwin-page-title {
    max-width: 100%;
    margin-bottom: var(--stg-gap);
  }
  .periwin-hero-type03 .periwin-hero-title-wrap > div {
    max-width: 45%;
    align-self: flex-end;
  }
  .periwin-hero-type03 .periwin-hero-media-content {
    max-width: 45%;
  }
  .periwin-hero-type03 .periwin-tags-list {
    max-width: 50%;
  }

  /* Type 04 */
  .periwin-hero-type04 .periwin-large-text {
    max-width: 100%;
  }
  .periwin-hero-type04 .periwin-hero-info-line {
    margin-bottom: var(--stg-large-gap);
  }

  /* Type 07 */
  .periwin-hero-type07 .periwin-page-title {
    font-size: var(--periwin-t-h2-fs);
    letter-spacing: var(--periwin-t-h2-ls);
    line-height: var(--periwin-t-h2-lh);
    padding: 0;
  }
  .periwin-hero-type07 .periwin-hero-social-proof {
    margin-top: calc(var(--stg-gap) + var(--stg-xs-gap));
  }
  .periwin-hero-type07 .periwin-hero-social-proof a,
  .periwin-hero-type07 .periwin-hero-social-proof img {
    width: 64px;
    height: 64px;
  }
  .periwin-hero-type07 .periwin-hero-social-proof a span {
    display: none;
  }
  .periwin-hero-type07 .periwin-hero-social-proof > div {
    flex-wrap: wrap;
  }
  .periwin-hero-type07 .periwin-large-text {
    font-size: var(--periwin-t-content-fs);
    line-height: var(--periwin-t-content-lh);
    letter-spacing: var(--periwin-t-content-ls);
  }

  /* Type 08 */
  .periwin-hero-form {
    padding: 0;
  }
  .periwin-hero-type08 h1 {
    padding: 0;
  }
  .periwin-hero-type08 .stg-row > div.stg-tp-col-12 p {
    max-width: 80%;
    margin: 0 10% var(--stg-gap) 10%;
  }

  /* === CTA Sections === */
  .periwin-masked-cta .periwin-masked-content {
    max-width: 50%;
  }
  .periwin-masked-cta .periwin-cta-title {
    font-size: var(--periwin-t-h2-fs);
    letter-spacing: var(--periwin-t-h2-ls);
    line-height: var(--periwin-t-h2-lh);
    max-width: 100%;
    margin: var(--stg-large-gap) 0;
  }
  .periwin-masked-cta input {
    font-size: var(--periwin-t-h4-fs);
    letter-spacing: var(--periwin-t-h4-ls);
  }
  .periwin-masked-cta button {
    padding: var(--stg-gap);
  }
  .periwin-masked-cta button span {
    width: 28px;
    height: 28px;
  }

  .stg-cta-with-image {
    padding: 0;
  }
  .periwin-cta-form-title {
    font-size: var(--periwin-t-h2-fs);
    letter-spacing: var(--periwin-t-h2-ls);
    line-height: var(--periwin-t-h2-lh);
  }
  .periwin-cta-text {
    padding: var(--stg-large-gap) 0;
  }
  div[class*="stg-col"]:has(.periwin-offset-image) {
    margin-top: calc(2 * var(--stg-large-gap));
    margin-bottom: calc(-1 * var(--stg-large-gap));
  }
  [class*="stg-col-"]:first-child > div.periwin-offset-image,
  [class*="stg-col-"] > div.periwin-offset-image {
    border-radius: 0 var(--periwin-large-br) 0 0;
  }
  [class*="stg-col-"]:last-child > div.periwin-offset-image {
    border-radius: var(--periwin-large-br) 0 0 0;
  }

  /* === Elements === */
  .periwin-section-title p.is-short {
    max-width: calc(0.8 * var(--stg-container-width));
  }
  .periwin-masked-content {
    max-width: 50%;
  }
  .periwin-grid-cta .periwin-masked-content {
    max-width: 33.33%;
  }

  iframe.periwin-google-map {
    aspect-ratio: 1/1;
    height: auto;
    max-height: unset;
  }

  /* List with Preview */
  .periwin-list-with-preview {
    flex-direction: column;
  }
  .periwin-lwp-media {
    display: none;
  }
  .periwin-list-with-preview > div.periwin-lwp-roster {
    width: 100%;
  }
  .periwin-lwp-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--stg-gap);
  }
  .periwin-lwp-item > img {
    display: block;
    min-width: 64px;
    max-width: 64px;
    border-radius: calc(1.5 * var(--periwin-xs-br));
  }
  .periwin-lwp-item h5 {
    min-width: calc(50% - 64px - 2 * var(--stg-gap));
  }
  .periwin-lwp-item-content {
    width: 100%;
  }
  .periwin-lwp-roster .align-right:nth-child(odd) {
    text-align: left;
  }

  /* List with Details */
  .periwin-detailed-list-title {
    min-width: calc(25% - var(--stg-gap));
    max-width: calc(25% - var(--stg-gap));
  }
  .periwin-detailed-list-description {
    min-width: calc(75% - 2 * var(--stg-gap) - 64px);
    max-width: calc(75% - 2 * var(--stg-gap) - 64px);
  }
  .periwin-detailed-list-button {
    width: 64px;
    height: 64px;
  }

  /* Slider */
  .periwin-slider-nav.periwin-masked-content {
    width: 128px;
    height: 64px;
  }
  .periwin-slider-nav.periwin-masked-content a {
    width: 56px;
    height: 56px;
    margin: 8px 0 0 8px;
  }
  .periwin-slider-nav.on-sides a span.periwin-icon {
    width: 20px;
    height: 20px;
  }

  /* FAQ */
  .periwin-toggles-item--title h4 {
    font-size: var(--periwin-t-h6-fs);
    letter-spacing: var(--periwin-t-h6-ls);
    line-height: var(--periwin-t-h6-lh);
  }
  .periwin-toggles-item--title i.periwin-icon {
    transform: rotate(-90deg) translate(-3px, 0px);
  }
  .is-active .periwin-toggles-item--title .periwin-icon {
    transform: rotate(0deg) translate(0, 8px);
  }

  /* === Portfolio === */
  .periwin-infinite-list-title h2 {
    font-size: var(--periwin-t-h3-fs);
    letter-spacing: var(--periwin-t-h3-ls);
    line-height: var(--periwin-t-h3-lh);
  }
  .periwin-fullscreen-page .periwin-slider img,
  .periwin-fullscreen-page .periwin-slider video {
    height: calc(100svh - var(--st-header-height) - var(--st-footer-height));
    width: auto;
  }

  .periwin-column-item .periwin-masked-content {
    max-width: 85%;
  }
  .periwin-column-item h4 {
    font-size: var(--periwin-t-h5-fs);
    letter-spacing: var(--periwin-t-h5-ls);
    line-height: var(--periwin-t-h5-lh);
  }
  .periwin-column-item-title span {
    margin-bottom: 4px;
  }
  .periwin-column-item-content .periwin-icon-wrap {
    width: 64px;
    height: 64px;
  }
  .periwin-column-item .periwin-icon {
    width: 16px;
    height: 16px;
  }

  .periwin-next-post h2 {
    font-size: var(--periwin-t-h2-fs);
    letter-spacing: var(--periwin-t-h2-ls);
    line-height: var(--periwin-t-h2-lh);
  }
  .periwin-next-post .periwin-icon {
    width: 24px;
    height: 24px;
  }
  .periwin-next-post.periwin-icon-link .periwin-icon-wrap {
    width: 96px;
    height: 96px;
  }
  .periwin-next-post .periwin-icon-wrap::before {
    border-width: 2px;
  }

  /* === Footer === */
  .periwin-footer-widgets div[class*="stg-tp-col"]:has(.periwin-info-widget) {
    padding: 0 calc(0.2 * var(--stg-container-width)) 0 0;
  }
  .periwin-info-widget .periwin-label {
    margin-bottom: 8px;
  }
}

/* MOBILE PHONES
   ============= */
@media only screen and (max-width: 739px) {
  .periwin-mobile-nav::after {
    background: linear-gradient(
      180deg,
      transparent 0%,
      var(--periwin-s-body-bg) 100%
    );
    opacity: 0.85;
  }
  section.is-fullwidth {
    margin-left: calc(-1 * var(--stg-gap));
    margin-right: calc(-1 * var(--stg-gap));
    padding-left: var(--stg-gap);
    padding-right: var(--stg-gap);
  }
  section.is-fullwidth.is-stretched > .is-boxed {
    padding-left: var(--stg-gap);
    padding-right: var(--stg-gap);
  }

  /* === Mobile Menu === */
  .periwin-mobile-nav {
    max-width: 100%;
  }
  .periwin-mobile-header-inner {
    padding: var(--periwin-header-spacing) var(--stg-gap);
  }

  /* === Grid === */
  .periwin-grid-1col,
  .periwin-grid-2cols,
  .periwin-grid-3cols,
  .periwin-grid-4cols,
  .periwin-grid-5cols,
  .periwin-grid-6cols {
    grid-template-columns: repeat(1, 1fr);
  }

  .stg-row > div[class*="periwin-m-grid"],
  [class*="periwin-m-grid"] {
    display: grid;
    grid-column-gap: var(--stg-gap);
    grid-row-gap: var(--stg-gap);
  }
  .periwin-m-grid-1col {
    grid-template-columns: repeat(1, 1fr);
  }
  .periwin-m-grid-2cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .periwin-m-grid-3cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .periwin-m-grid-4cols {
    grid-template-columns: repeat(4, 1fr);
  }
  .periwin-m-grid-5cols {
    grid-template-columns: repeat(5, 1fr);
  }
  .periwin-m-grid-6cols {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Fullwidth Sections */
  section.m-is-fullwidth {
    max-width: 100svw;
    --periwin-fw-spacing: calc(0.5 * (100vw - var(--stg-container-width)));
    margin-left: calc(-1 * var(--periwin-fw-spacing));
    margin-right: calc(-1 * var(--periwin-fw-spacing));
    padding-left: var(--periwin-fw-spacing);
    padding-right: var(--periwin-fw-spacing);
  }
  section.m-is-fullwidth.m-is-stretched {
    padding-left: 0;
    padding-right: 0;
  }
  section.m-is-fullwidth.m-is-stretched > .m-is-boxed {
    --periwin-fw-spacing: calc(0.5 * (100vw - var(--stg-container-width)));
    padding-left: var(--periwin-fw-spacing);
    padding-right: var(--periwin-fw-spacing);
  }

  /* Sections Spacing */
  section[data-tp-padding="none"] {
    padding-top: 0;
    padding-bottom: 0;
  }
  section[data-tp-padding="top"] {
    padding-bottom: 0;
  }
  section[data-tp-padding="bottom"] {
    padding-top: 0;
  }
  section[data-tp-padding="small"] {
    padding: calc(0.5 * var(--periwin-section-gap)) 0;
  }

  /* === Home Hero Sections === */
  .periwin-hero-info-line {
    font-size: var(--periwin-t-meta-fs);
  }
  /* Type 01 */
  .periwin-hero-type01 .periwin-hero-social-proof {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--stg-gap);
  }
  .periwin-hero-type01 .periwin-hero-social-proof > p {
    text-align: left;
  }
  .periwin-hero-type01 .periwin-hero-social-proof > div {
    margin: 0 0 0 28px;
  }
  .periwin-hero-type01 .periwin-masked-block {
    --masked-inner-radius: var(--periwin-default-br);
    --masked-border-radius: var(--periwin-small-br);
  }
  .periwin-hero-type01 .periwin-masked-content a.periwin-square-button {
    width: 44px;
    height: 44px;
    border-radius: var(--periwin-small-br);
  }
  .periwin-hero-type01 .periwin-masked-content a span {
    width: 16px;
    height: 16px;
  }
  .periwin-hero-type01 .periwin-masked-content {
    width: 56px;
    height: 56px;
  }
  .periwin-hero-type01
    .periwin-masked-content.at-bottom-right
    .periwin-square-button {
    margin: var(--stg-small-gap) 0 0 var(--stg-small-gap);
  }
  .periwin-hero-type01 .periwin-masked-media img {
    border-radius: var(--periwin-small-br);
  }

  /* Type 02 */
  .stg-row.periwin-hero02-row {
    width: 100%;
  }
  .periwin-hero-type02 .stg-col-4 > img {
    margin-left: 0;
  }
  .periwin-hero-type02 .stg-row.stg-no-gap > div.stg-tp-offset-6 {
    margin: 0;
    position: absolute;
    right: 0;
    top: calc(-0.25 * var(--stg-gap));
    width: calc(50% - 0.5 * var(--stg-gap));
  }
  .stg-row.periwin-hero02-row {
    padding-bottom: 0;
  }

  /* Type 03 */
  .periwin-hero-type03 .periwin-hero-title-wrap h1.periwin-page-title {
    margin-bottom: 0;
  }
  .periwin-hero-type03 .periwin-tags-list,
  .periwin-hero-type03 .periwin-hero-media-content {
    position: static;
  }
  .periwin-hero-type03 .periwin-tags-list {
    max-width: 100%;
  }
  .periwin-hero-type03 .periwin-hero-media-content {
    margin: var(--stg-gap) 0;
    max-width: 80%;
    margin-left: 10%;
  }
  .periwin-hero-type03 .periwin-hero-title-wrap > div {
    max-width: 50%;
    margin: 0 25%;
  }
  .periwin-hero-type03 .periwin-masked-content.at-top-right > div {
    padding: 0;
  }
  .periwin-hero-type03 .periwin-tags-list {
    justify-content: center;
  }

  /* Type 05 */
  .periwin-hero-type05 a.periwin-square-button span.periwin-icon {
    width: 32px;
    height: 32px;
  }

  /* Type 06 */
  .periwin-hero-type06 .periwin-masked-content.at-bottom-right {
    width: 88px;
    height: 88px;
  }
  .periwin-hero-type06
    .periwin-masked-content.at-bottom-right
    a.periwin-square-button {
    margin: var(--stg-small-gap) 0 0 var(--stg-small-gap);
  }
  .periwin-hero-type06 .periwin-square-button {
    width: calc(100% - var(--stg-small-gap));
    height: calc(100% - var(--stg-small-gap));
  }
  .periwin-hero-type06 .is-large .periwin-bento-hero-media p {
    max-width: calc(100% - 88px - var(--stg-small-gap));
  }

  /* Type 07 */
  .periwin-hero-type07 .periwin-hero-social-proof > div {
    justify-content: center;
  }

  /* Type 08 */
  .periwin-hero-type08 .stg-row > div.stg-tp-col-12 p {
    max-width: 100%;
    margin: 0 0 var(--stg-gap) 0;
  }
  .periwin-hero-form {
    padding-bottom: 0;
  }

  /* === Elements === */
  .periwin-page-title.is-large {
    font-size: var(--periwin-t-h1-fs);
    line-height: var(--periwin-t-h1-lh);
  }
  .periwin-section-title p.is-short {
    max-width: calc(0.9 * var(--stg-container-width));
  }
  .periwin-image-box:not(:last-child) {
    margin: unset;
  }
  .periwin-bento-grid:not(.periwin-grid-cta) .is-small .periwin-square-button {
    width: 48px;
    height: 48px;
  }
  .periwin-bento-grid:not(.periwin-grid-cta)
    .is-small
    .periwin-square-button
    .periwin-icon {
    width: 16px;
    height: 16px;
  }
  .periwin-member-contacts .periwin-socials-list a {
    width: 48px;
    height: 48px;
  }
  .periwin-member-contacts .periwin-socials-list a i {
    width: 24px;
    height: 24px;
  }
  .periwin-member-contacts .periwin-socials-list1 a {
    width: 48px;
    height: 48px;
  }
  .periwin-member-contacts .periwin-socials-list1 a i {
    width: 24px;
    height: 24px;
  }
  .periwin-icon-link .periwin-icon-wrap {
    width: 64px;
    height: 64px;
  }

  .periwin-tp-stretch-last-item.periwin-tp-grid-2cols
    > div:nth-child(odd):last-child.stg-aspect-square,
  .periwin-tp-stretch-last-item.periwin-tp-grid-2cols
    > div:nth-child(odd):last-child
    .stg-aspect-square {
    aspect-ratio: 1/1;
  }

  .periwin-masked-content[class*="stg-m-top-"],
  .periwin-masked-content[class*="stg-m-bottom-"] {
    position: static;
    max-width: 100%;
    padding: 0;
  }
  .periwin-masked-content[class*="stg-m-top-"] > div,
  .periwin-masked-content[class*="stg-m-bottom-"] > div {
    padding: 0;
  }

  /* List with Preview */
  .periwin-lwp-item {
    flex-direction: column;
    contain: paint;
  }
  .periwin-lwp-item h5 {
    width: 100%;
  }
  .periwin-lwp-item:not(.is-active) a {
    pointer-events: none;
  }
  .periwin-lwp-item > img {
    display: none;
  }

  /* FAQ */
  .periwin-toggles-item--title sup {
    display: none;
  }
  .periwin-toggles-item--title h4 {
    font-size: var(--periwin-t-h6-fs);
    letter-spacing: var(--periwin-t-h6-ls);
    line-height: var(--periwin-t-h6-lh);
    padding-right: 0;
  }
  .periwin-toggles-item--title i.periwin-icon {
    display: none;
  }

  /* Detailed List */
  .periwin-detailed-list li {
    align-items: center;
  }
  .periwin-detailed-list-title {
    min-width: calc(100% - 2 * var(--stg-gap) - 48px);
    max-width: calc(100% - 2 * var(--stg-gap) - 48px);
  }
  .periwin-detailed-list-description {
    display: none;
  }
  .periwin-detailed-list-button {
    width: 48px;
    height: 48px;
  }
  .periwin-detailed-list-button span.periwin-icon {
    width: 16px;
    height: 16px;
  }

  /* Slider */
  .periwin-slider-nav.periwin-masked-content a {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .periwin-slider-nav.periwin-masked-content a::before {
    border-width: 1px;
  }
  .periwin-slider-nav.periwin-masked-content span.periwin-icon {
    width: 12px;
    height: 12px;
  }
  .periwin-slider-nav.periwin-masked-content {
    width: 100px;
    height: 52px;
  }

  .periwin-list-with-preview > div.periwin-lwp-roster {
    grid-template-columns: repeat(1, 1fr);
  }

  /* === CTA === */
  .periwin-masked-cta .periwin-masked-content {
    display: none;
  }
  .periwin-masked-cta .periwin-cta-form {
    padding: var(--stg-gap);
    flex-direction: column;
    gap: var(--stg-small-gap);
  }
  .periwin-masked-cta .periwin-cta-title {
    margin: 0 0 var(--stg-gap) 0;
  }
  .periwin-masked-cta .periwin-cta-form-button {
    width: 100%;
  }
  .periwin-masked-cta button {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .periwin-masked-cta input {
    font-size: var(--periwin-t-h6-fs);
    letter-spacing: var(--periwin-t-h5-ls);
  }

  .periwin-grid-cta .periwin-square-button span {
    width: 48px;
    height: 48px;
  }

  .periwin-bento-grid {
    grid-auto-flow: column;
    grid-template-columns: repeat(
      2,
      minmax(auto, calc(50% - 0.5 * var(--stg-gap)))
    );
    grid-template-rows: repeat(4, auto);
  }
  .periwin-bento-grid .is-large {
    min-height: var(--stg-container-width);
  }
  .periwin-grid-cta .is-medium {
    aspect-ratio: 2;
  }
  .periwin-bento-grid .is-small:has(.periwin-meta-list) {
    max-height: fit-content;
  }

  /* === Portfolio === */
  /* Infinite List */
  .periwin-infinite-list-item .periwin-meta {
    margin-bottom: 4px;
  }
  .periwin-infinite-list-title h2 {
    font-size: var(--periwin-t-h6-fs);
    letter-spacing: var(--periwin-t-h6-ls);
    line-height: var(--periwin-t-h6-lh);
  }
  .periwin-infinite-list-icon {
    width: 48px;
    height: 48px;
  }
  .periwin-infinite-list-icon .periwin-icon {
    width: 16px;
    height: 16px;
  }
  .periwin-infinite-list-preview {
    width: 64px;
    height: 64px;
    top: calc(50% - 32px);
  }
  .periwin-infinite-list-item {
    padding-left: calc(64px + var(--stg-gap));
  }

  /* Slider */
  .periwin-slider-nav.on-sides a {
    height: 64px;
  }
  .periwin-slider-nav.on-sides {
    top: calc(50% - 32px);
  }
  .periwin-slider-nav.on-sides a.periwin-slider-prev span.periwin-icon {
    transform: translateX(-4px);
  }
  .periwin-slider-nav.on-sides a.periwin-slider-next span.periwin-icon {
    transform: translateX(4px);
  }
  .periwin-slider .periwin-slide-content-inner {
    padding: calc(1.5 * var(--stg-small-gap)) calc(1.5 * var(--stg-gap));
  }
  .periwin-slider .periwin-slide-content-inner h4 {
    font-size: var(--periwin-t-h5-fs);
    letter-spacing: var(--periwin-t-h5-ls);
    line-height: var(--periwin-t-h5-lh);
  }

  /* Column */
  .periwin-column-item.periwin-masked-block {
    --masked-inner-radius: var(--periwin-default-br);
  }
  .periwin-column-item h4 {
    font-size: var(--periwin-t-h6-fs);
    letter-spacing: var(--periwin-t-h6-ls);
    line-height: var(--periwin-t-h6-lh);
  }
  .periwin-column-item-content .periwin-icon-wrap {
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
  }
  .periwin-column-item .periwin-masked-content {
    max-width: calc(100% - var(--stg-gap));
  }

  /* Posts */
  .periwin-hero-info-line .periwin-meta {
    display: flex;
    flex-direction: column;
  }
  .periwin-next-post.periwin-icon-link .periwin-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--periwin-default-br);
  }
  .periwin-next-post .periwin-icon {
    width: 20px;
    height: 20px;
  }

  .periwin-bento-grid > div > ul.periwin-meta-list .periwin-meta {
    margin-bottom: -2px;
  }

  /* === Footer === */
  .periwin-footer-widgets div[class*="stg-tp-col"]:has(.periwin-info-widget) {
    padding: 0;
  }
  .periwin-menu-widget {
    font-size: 12px;
  }
}
