﻿/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Variables */
:root {
  --container-max: 1080px;
  --container-padding: 24px;

  --color-text: #555658;
  --color-bg: #f3f3f1;
  --color-heading: #2a2a2c;
  --color-border: rgba(85, 86, 88, 0.15);
  --color-white: #ffffff;
  --color-placeholder: #e8e8e6;

  --font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  --font-family-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-size-base: 16px;
  --line-height-base: 1.8;
  --font-weight-body: 400;
  --font-weight-heading: 300;
  --letter-spacing-heading: 0.05em;

  --space-xs: 16px;
  --space-sm: 24px;
  --space-md: 32px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  --transition-link: opacity 0.3s ease;
  --transition-header: background-color 0.4s ease, box-shadow 0.4s ease;
  --transition-hover: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);

  --z-header: 100;
  --z-menu-overlay: 200;
}

/* Typography */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-body);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-heading);
  color: var(--color-heading);
  line-height: 1.3;
}

a {
  transition: var(--transition-link);
}

a:hover {
  opacity: 0.7;
}

/* Global */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: calc(var(--z-menu-overlay) + 1);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-heading);
  color: var(--color-white);
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-sm);
  opacity: 1;
}

:focus-visible {
  outline: 2px solid var(--color-heading);
  outline-offset: 3px;
}

body.menu-open {
  overflow: hidden;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding-block: var(--space-sm);
  background-color: transparent;
  transition: var(--transition-header);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header.is-scrolled {
  background-color: rgba(243, 243, 241, 0.95);
  box-shadow: 0 1px 0 var(--color-border);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-header__logo {
  font-size: 18px;
  font-weight: var(--font-weight-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-heading);
}
.site-header__logo img {
  width: 250px;
}

.site-header__logo:hover {
  opacity: 0.7;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__link {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.site-nav__link--active {
  opacity: 0.5;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.site-header__toggle-bar {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-heading);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.site-header__toggle[aria-expanded='true']
  .site-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__toggle[aria-expanded='true']
  .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header__toggle[aria-expanded='true']
  .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mobile-menu__link {
  font-size: 24px;
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--letter-spacing-heading);
  text-transform: uppercase;
  color: var(--color-heading);
}

/* Portfolio Listing */
.portfolio-listing {
  padding-block: var(--space-lg) var(--space-xl);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 14px;
  row-gap: 14px;
}

.portfolio-card {
  height: 100%;
}

.portfolio-card__link {
  display: block;
  position: relative;
}

.portfolio-card__link:hover,
.portfolio-card__link:focus-visible {
  opacity: 1;
}

.portfolio-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--color-placeholder);
  isolation: isolate;
}

.portfolio-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1) translateZ(0);
  transform-origin: center center;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.portfolio-card__meta {
  position: absolute;
  top: 26px;
  left: 26px;
  width: calc(100% - 52px);
  height: calc(100% - 52px);
  background-color: rgba(245, 243, 240, 0.95);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.portfolio-card__names,
.portfolio-hero__eyebrow {
  font-size: 9px;
  margin-bottom: 4px;
  text-transform: uppercase;
  position: relative;
  letter-spacing: 0.2rem;
}

.portfolio-card__names::before,
.portfolio-hero__eyebrow::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translate(-100%, -3px);
  border-bottom: 1px solid #8b8b9b;
  height: 1px;
  width: 65px;
}

.portfolio-card__location,
.portfolio-hero__title {
  font-family: var(--font-family-serif);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: capitalize;
  color: var(--color-text);
  margin-bottom: 10px;
  font-style: italic;
}

.portfolio-card__separator,
.portfolio-hero__separator {
  display: block;
  width: 15px;
  height: 1px;
  background: #8b8b9b;
  margin: 8px 0;
}

.portfolio-card__cta {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-heading);
}

/* Portfolio Single */
.portfolio-single {
  --section-gap: var(--space-2xl);
  padding-top: var(--space-lg);
}

.portfolio-hero {
  position: relative;
}

.portfolio-hero__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  height: 100vh;
}

.portfolio-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-hero__content {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  width: clamp(420px, 38vw, 500px);
  padding: 45px;
  max-width: 422px;
  min-height: 390px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 48px rgba(42, 42, 44, 0.1);
  transform: translateY(-50%);
}

.portfolio-hero__eyebrow {
  color: var(--color-text);
}

.portfolio-hero__title {
  font-weight: var(--font-weight-heading);
  line-height: 1.3;
}

.portfolio-hero__description {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 10px;
  line-height: 1.85;
  color: var(--color-text);
  margin-bottom: 0;
}

.portfolio-hero__published {
  display: flex;
  align-items: center;
  gap: 4px;
}

.portfolio-hero__published-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
}

.portfolio-hero__published-link {
  font-size: 10px;
  color: var(--color-text);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.portfolio-hero__published-link:hover {
  opacity: 1;
}

/* Gallery (embedded in portfolio single) */
section.portfolio-gallery {
  position: relative;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

section.portfolio-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 539px;
  background: #f5f3f0;
  z-index: -1;
}

.portfolio-single .gallery {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gallery-row {
  display: grid;
  gap: 7px;
  width: 100%;
}

.gallery-row--single {
  grid-template-columns: 1fr;
}

.gallery-row--double {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-item--portrait {
  padding-bottom: 150%;
}

.gallery-item--landscape {
  padding-bottom: 66.666%;
}

/* Gallery wrapper & side navigation */
.portfolio-gallery-wrapper__main {
  position: relative;
}

.portfolio-gallery-wrapper__main > .gallery {
  width: 100%;
}

.portfolio-gallery__back-to-top,
.portfolio-gallery__scroll-to-bottom {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.portfolio-gallery__back-to-top:hover,
.portfolio-gallery__scroll-to-bottom:hover {
  opacity: 1;
}

.portfolio-gallery__scroll-to-bottom {
  right: -60px;
  top: 0;
}

.portfolio-gallery__scroll-to-bottom::before {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.portfolio-gallery__back-to-top {
  left: -60px;
  bottom: 0;
  transform: rotate(180deg);
}

.portfolio-gallery__back-to-top::before {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.portfolio-gallery__pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 30px;
}

.portfolio-gallery__prev,
.portfolio-gallery__next {
  font-size: 10px;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.portfolio-gallery__prev:hover,
.portfolio-gallery__next:hover {
  opacity: 1;
}

.portfolio-gallery__next {
  margin-left: auto;
}

/* GLightbox — light theme */
.glightbox-container {
  background-color: transparent;
}
.goverlay {
  background: rgba(255, 255, 255, 0.95) !important;
}

.glightbox-clean .gslide-media {
  background: transparent !important;
  box-shadow: none !important;
}

.gclose,
.gprev,
.gnext {
  color: #555658;
  fill: #555658;
}

.glightbox-clean .gclose,
.glightbox-clean .gprev,
.glightbox-clean .gnext {
  background-color: transparent !important;
}

.glightbox-clean .gclose path,
.glightbox-clean .gprev path,
.glightbox-clean .gnext path {
  fill: #555658;
}

.gclose:hover,
.gprev:hover,
.gnext:hover {
  opacity: 0.7;
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gprev:hover,
.glightbox-clean .gnext:hover {
  background-color: transparent !important;
}

.gslide-description,
.gdesc-inner {
  color: #555658;
}

/* GLightbox — editorial slide transition */
.gslideInRight,
.gslideInLeft,
.gslideOutLeft,
.gslideOutRight {
  will-change: transform;
  backface-visibility: hidden;
}

.gslideInRight {
  animation: gslideInRight 1s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
}

.gslideInLeft {
  animation: gslideInLeft 1s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
}

.gslideOutLeft {
  animation: gslideOutLeft 1s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
}

.gslideOutRight {
  animation: gslideOutRight 1s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
}

@keyframes gslideInRight {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes gslideInLeft {
  from {
    transform: translate3d(-100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes gslideOutLeft {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes gslideOutRight {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(100%, 0, 0);
  }
}

/* Footer */
.site-footer {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.site-footer__copy {
  font-size: 13px;
  letter-spacing: 0.05em;
}

.site-footer__social {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.topMenus {
  padding-top: var(--space-lg);
}
.topMenus ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px;
}
.topMenus ul li {
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
}
.topMenus ul li a {
  color: var(--color-heading);
  transition: all 0.3s ease-in-out;
  font-size: 10px;
  letter-spacing: 0.2rem;
  font-family: 'Styrene A', sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  line-height: 1;
}
.topMenus ul li a.active {
  opacity: 0.7;
}
.topMenus ul li::after {
  content: '';
  width: 10px;
  height: 1px;
  background: var(--color-heading);
  margin: 0 10px;
}

.topMenus ul li:last-child::after {
  display: none;
}
