:root {
  --ib-project-title: var(--accent, var(--gold));
}

html.portfolio-home {
  --portfolio-gutter: max(6vw, calc((100% - 1480px) / 2));
  scroll-padding-top: 82px;
}

.portfolio-home body > header {
  gap: clamp(10px, 1.5vw, 24px);
  padding: 13px var(--portfolio-gutter);
}

.portfolio-home body > header > .brand {
  color: #f4f0e9;
  font-family: var(--ib-type-latin) !important;
  font-size: clamp(18px, 1.68vw, 26px);
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.2;
}

.portfolio-home body > header > .brand span {
  color: #d8b989;
  font-family: inherit !important;
}

@media (min-width: 761px) {
  .portfolio-home :is(#top > .hero, #work .intro, #work .grid, #work .products-inline, #work .collection-actions) {
    padding-inline: var(--portfolio-gutter);
  }

  .portfolio-home #top > .hero {
    max-width: none;
  }

  .portfolio-home body.motion-reveal #hero-title {
    font-size: clamp(52px, 6.4vw, 96px);
  }

  .portfolio-home[lang="ar"] body.motion-reveal #hero-title {
    font-size: clamp(44px, 5.15vw, 78px);
  }
}

@media (min-width: 1024px) {
  .portfolio-home body > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .portfolio-home body > header > .brand {
    justify-self: start;
  }

  .portfolio-home body > header > .header-actions {
    justify-self: end;
  }
}

@media (min-width: 761px) and (max-width: 1023px) {
  .portfolio-home body > header {
    padding-inline: 4vw;
  }

  .portfolio-home body > header > .nav {
    gap: 12px;
  }
}

@media (max-width: 760px) {
  html.portfolio-home {
    scroll-padding-top: 122px;
  }

  .portfolio-home body > header {
    padding-inline: 18px;
  }

  .portfolio-home body > header > .brand {
    font-size: clamp(15px, 4.35vw, 20px);
    letter-spacing: .035em;
  }
}

#work .intro {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-block: clamp(16px, 2.2vw, 28px) 16px;
}

#work .work-intro-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

#work .work-heading {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}

#work #work-title {
  color: var(--ib-project-title);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 650;
  line-height: 1.18;
}

#work .work-intro-copy p {
  display: block;
  margin: 0;
  max-inline-size: 45ch;
  font-size: .9375rem;
  line-height: 1.45;
}

#work .work-share-row {
  flex-shrink: 0;
  min-height: 0;
}

@media (max-width: 760px) {
  #work .intro {
    padding: 18px 18px 16px;
  }

  #work .work-intro-copy p {
    font-size: .875rem;
  }
}

#work .project {
  border-block-end: 1px solid #ffffff15;
}

#work .project .caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-height: 42px;
  padding-block: 3px 7px;
}

#work .project .project-title {
  padding-block-start: 4px;
  text-wrap: pretty;
}

html[lang="ar"] #work .project .project-title {
  font-weight: 600 !important;
}

#work .project :is(.project-open, .film-open)::before {
  position: absolute;
  inset: 0;
  content: "";
}

#work .project-share-footer {
  min-height: 0;
  padding: 0;
  border: 0;
}

#work .project .project-share-footer {
  position: relative;
  z-index: 1;
}

#work .collection-tile > .project-share-footer {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 7px;
  padding: 0;
  min-height: 0;
  transform: translateY(-50%);
}

#work .collection-tile a {
  padding-inline-end: 49px;
}

#work .work-share-row .ib-share-button,
#work .project-share-footer .ib-share-button,
#work .product-bottom-share .ib-share-button {
  width: 36px;
  height: 36px;
  border: 1px solid #d7bd8b30;
  border-radius: 50%;
  background: transparent;
  color: var(--ib-project-title);
}

#work .ib-share-button svg {
  width: 16px;
  height: 16px;
}

#work .ib-share-button:hover {
  background: #d7bd8b1a;
  color: var(--ib-project-title);
}

#work .ib-share-button:focus-visible {
  outline: 2px solid var(--ib-project-title);
  outline-offset: 2px;
}

#work .project .project-title,
#work .collection-tile__label strong,
#work .product-heading h3,
#film-dialog .film-toolbar h2,
body:has(.gallery-wrap) .hero h1,
body:has(.gallery-wrap) .hero h1 em,
body:has(.gallery-wrap) .section-head h2,
.follow-card-head h3,
#fashionTitle,
#fashionTitle em,
#fashionCollectionTitle {
  color: var(--ib-project-title);
}

#about h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
}

#contact h2 {
  font-size: clamp(36px, 5.3vw, 76px);
  line-height: 1.1;
}

body:has(.gallery-wrap) .hero h1 {
  font-size: clamp(32px, 4.1vw, 54px);
  line-height: 1.18;
}

body:has(.gallery-wrap) .section-head h2 {
  font-size: clamp(21px, 2.8vw, 34px);
  line-height: 1.28;
}

.follow-heading h2 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
}

.follow-card-head h3 {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
}

html .site-shell #fashionTitle {
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 1.12;
}

html .site-shell #fashionCollectionTitle {
  font-size: clamp(23px, 3.6vw, 44px);
  line-height: 1.15;
}

.ib-album-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 24px);
}

.ib-album-header .logo,
.ib-album-header .brand {
  flex-shrink: 0;
  color: #f4f0e9;
}

.ib-album-header .logo span {
  color: var(--ib-project-title);
}

.ib-section-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 16px);
  margin: 0;
}

.ib-section-rail a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 clamp(4px, 1vw, 14px);
  border-radius: 8px;
  color: #f4f0e9;
  text-decoration: none;
  white-space: nowrap;
  font-size: .875rem;
  line-height: 1.2;
}

.ib-section-rail a:hover,
.ib-section-rail .is-active {
  color: var(--ib-project-title);
  background: #d8b98914;
}

.ib-section-rail a:focus-visible {
  outline: 2px solid var(--ib-project-title);
  outline-offset: 1px;
}

.ib-album-viewer-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  min-height: 54px;
  padding: 5px clamp(10px, 2vw, 26px);
  border-bottom: 1px solid #d8b98945;
  background: #0c1929;
}

.viewer-stage:not(.zoom) .viewer-image,
.follow-image-viewer:not(.zoom) .follow-viewer-main img {
  max-height: 100%;
}

#fashionLightbox .ib-album-viewer-header {
  position: absolute;
  inset: 0 0 auto;
}

.ib-album-viewer-header .ib-viewer-close {
  position: static;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d8b98955;
  border-radius: 50%;
  color: var(--ib-project-title);
  background: #122235;
  cursor: pointer;
  font-size: 0;
}

.ib-viewer-close::after {
  content: '×' / '';
  font-size: 1.5rem;
  line-height: 1;
}


@media (min-width: 761px) and (max-width: 1050px) {
  .ib-album-header .note {
    display: none;
  }
}

@media (max-width: 760px) {
  body:has(.gallery-wrap) .top.ib-album-header,
  .topbar.ib-album-header {
    gap: 5px;
    padding: 4px 7px;
  }

  .ib-section-rail {
    flex: 1;
    gap: 2px;
  }

  .ib-section-rail a {
    padding-inline: clamp(2px, 1vw, 7px);
    font-size: clamp(.6875rem, 3.25vw, .8125rem);
  }

  .ib-album-header .logo,
  .ib-album-header .brand {
    font-size: clamp(.5625rem, 2.5vw, .75rem);
    line-height: 1.15;
  }

  .ib-album-header .logo span {
    display: block;
  }

  .ib-album-header .brand-icon,
  .ib-album-header .brand small,
  .ib-album-header .note {
    display: none;
  }

  .ib-album-header .brand {
    max-width: 65px;
  }

  .ib-album-header .topright {
    gap: 3px;
  }

  .ib-album-header .topright .lang {
    padding-inline: 5px;
    font-size: .6875rem;
  }

  .ib-album-header .album-wa {
    font-size: 0;
    padding: 5px;
  }

  .ib-album-header .album-wa::after {
    content: 'WA' / '';
    font-size: .625rem;
  }

  .ib-album-header .back-link {
    font-size: 0;
    padding-inline: 6px;
  }

  .ib-album-header .back-link::after {
    content: '←' / '';
    font-size: .875rem;
  }

  .ib-album-viewer-header {
    grid-template-columns: auto 1fr auto;
    gap: 5px;
    padding-inline: 7px;
  }
}

@media (max-width: 370px) {
  .ib-album-header .album-wa {
    display: none;
  }
}

.ib-home-services{padding-block:23px 28px;padding-inline:var(--portfolio-gutter,6vw);border-block-start:1px solid #d8b98930}
.ib-home-services h2{font-size:clamp(19px,2vw,28px);line-height:1.25;color:var(--accent);margin:0 0 10px}
.ib-home-services nav{display:flex;flex-wrap:wrap;gap:8px 18px}
.ib-home-services a{border-block-end:1px solid #d8b98965;font-size:14px;padding-block:5px}
.ib-home-services a:hover{color:var(--accent)}
@media(max-width:760px){.ib-home-services{padding-inline:18px}}
