/* ==========================================================================
   adley photography — static rebuild of the WordPress "Lucio" theme look
   ========================================================================== */

:root {
  --bg: #f7f7fa;
  --white: #fff;
  --text: #565656;
  --heading: #111;
  --link: #3b3b3b;
  --accent: #e497b5;
  --muted: #a1a1a1;
  --overlay-dark: #0b0a18;

  --font-body: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Dosis", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-nav: "Quicksand", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --nav-height: 65px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.77em;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: scroll;
  overflow-wrap: break-word;
}

img { border: 0; vertical-align: middle; }

a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
  outline: 0;
  cursor: pointer;
  transition: color 0.2s;
}
a:hover,
a:active { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 200;
  line-height: 1.4;
}
h1:last-child, h2:last-child, h3:last-child { margin-bottom: 0; }
h1 { font-size: 65px; }
h3 { font-size: 32px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* --------------------------------------------------------------------------
   Layout container (Bootstrap 3 widths used by the original theme)
   -------------------------------------------------------------------------- */
.container {
  position: relative;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }
@media (max-width: 768px)  { .container { padding: 0 15px; } }

/* Narrow centred column (col-sm-8 offset-2) */
.col-narrow { padding: 0 30px; }
@media (min-width: 768px) {
  .col-narrow { width: 66.6667%; margin-left: 16.6667%; }
}
@media (max-width: 768px) { .col-narrow { padding: 0 15px 30px; } }

/* --------------------------------------------------------------------------
   Header / navigation (desktop)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--nav-height);
  z-index: 1000;
  background-color: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}
.site-header.nav-up {
  transform: translateY(-100%);
  opacity: 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.site-logo { display: block; line-height: 0; }
.site-logo img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 100%;
  padding: 10px 0;
}

.main-menu {
  margin: 0;
  padding: 35px 0 0;
  list-style: none;
  display: flex;
  font-family: var(--font-nav);
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
}
.main-menu li { position: relative; padding: 0 30px 30px; }
.main-menu li:first-child { padding-left: 0; }
.main-menu li:last-child { padding-right: 0; }
.main-menu a {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--link);
}
.main-menu a:hover,
.main-menu .is-current > a { color: var(--accent); }

@media (min-width: 992px) and (max-width: 1199px) {
  .main-menu { padding-top: 25px; }
  .main-menu li { padding: 0 20px 20px; }
}
@media (max-width: 991px) {
  .main-menu { padding-top: 25px; }
  .main-menu li { padding: 0 13px 20px; }
  .main-menu a { letter-spacing: 0.05em; }
}

.nav-offset { padding-top: var(--nav-height); }

/* --------------------------------------------------------------------------
   Mobile navigation (replaces SlickNav)
   -------------------------------------------------------------------------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 20px;
  background-color: var(--white);
  text-align: center;
  font-family: var(--font-nav);
}
.mobile-nav .site-logo { display: inline-block; vertical-align: top; }
.mobile-nav .site-logo img {
  height: 51px;
  padding: 0;
  margin: 10px 0 21px;
}

.menu-toggle {
  position: absolute;
  top: 23px;
  right: 20px;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 1.125em;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #333;
}
.menu-toggle span + span { margin-top: 3px; }

.mobile-menu {
  display: none;
  clear: both;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
  font-size: 14px;
  max-height: 60vh;
  overflow-y: auto;
}
.mobile-nav.is-open .mobile-menu { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 5px;
  margin: 2px 5px;
  font-size: 11px;
  line-height: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #333;
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--accent); color: #333; }

@media (max-width: 768px) {
  .site-header { display: none; }
  .mobile-nav { display: block; }
  .nav-offset { padding-top: 75px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { position: relative; clear: both; }
.section-gallery { padding: 20px 0 40px; }
.section-gallery h3 { margin: 0; }
.section-gallery h3 a { color: inherit; font-weight: inherit; }
.section-gallery h3 a:hover { color: var(--accent); }
.section-spacer { height: 40px; background-color: var(--white); }

.section-title { padding: 40px 0; background-color: rgba(255, 255, 255, 0.75); }
.section-title h1 { margin: 0; }

.spacer-20 { height: 20px; }

/* Home hero with parallax background */
.hero {
  position: relative;
  padding: 140px 0;
  background-image: url("../../images/2021/11/header.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 53.76%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--white);
  opacity: 0.4;
}
.hero-inner { position: relative; height: 91px; }

/* Home category tiles */
.section-tiles { padding: 47px 0 89px; }

/* --------------------------------------------------------------------------
   Portfolio grid (gallery + home tiles)
   -------------------------------------------------------------------------- */
.portfolio-grid {
  --cols: 4;
  --gutter: 4px;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gutter);
  margin: var(--gutter) 0 0;
  padding: 0 var(--gutter) var(--gutter);
  list-style: none;
}
.portfolio-grid.cols-2 { --cols: 2; }
.portfolio-grid.cols-4 { --cols: 4; }
.portfolio-grid.is-tiles { --cols: 2; --gutter: 20px; padding-bottom: 0; }

.portfolio-grid li { position: relative; }
.portfolio-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.portfolio-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.portfolio-grid .overlay-dark {
  position: absolute;
  inset: 0;
  background-color: var(--overlay-dark);
  opacity: 0;
  transition: opacity 0.2s;
}
.portfolio-grid a:hover img { transform: scale(1.14); }
.portfolio-grid a:hover .overlay-dark { opacity: 0.4; }

/* Home tiles: white frame + title */
.portfolio-grid.is-tiles a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  border: 1px solid var(--white);
  opacity: 0;
  transition: all 0.3s;
}
.portfolio-grid.is-tiles a:hover::before { inset: 30px; opacity: 1; }

.tile-title {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 50%;
  transform: translateY(-30%);
  color: var(--white);
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 2px 2px 6px #000;
  pointer-events: none;
  transition: 0.4s;
}

/* Responsive columns (mirrors the original Isotope behaviour) */
@media (max-width: 991px) {
  .portfolio-grid.cols-4 { --cols: 3; }
  .tile-title { font-size: 18px; }
}
@media (max-width: 767px) {
  .portfolio-grid.cols-4 { --cols: 2; }
}
@media (max-width: 479px) {
  .portfolio-grid.cols-4,
  .portfolio-grid.cols-2,
  .portfolio-grid.is-tiles { --cols: 1; }
}
@media (max-width: 768px) {
  .portfolio-grid a:hover img { transform: none; }
  .portfolio-grid.is-tiles a::before { opacity: 1; }
  .tile-title { left: 0; right: 0; padding: 0 20px; }
  .hero-inner { height: 121px; }
}
@media (max-width: 480px) {
  h1 { font-size: 40px; }
  h3 { font-size: 24px; }
  .hero-inner { height: 86px; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: 80px 0;
  background-color: var(--white);
}
.social-links {
  margin-bottom: 40px;
  text-align: center;
}
.social-links a {
  display: inline-block;
  margin: 0 8px 0 0;
  line-height: 40px;
  color: var(--muted);
  text-align: center;
  vertical-align: middle;
}
.social-links a:last-child { margin-right: 0; }
.social-links .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  vertical-align: middle;
  transition: 0.2s;
}
.social-links svg { width: 14px; height: 14px; fill: currentColor; }
.social-links a.facebook:hover .icon { color: #3b5998; border-color: #3b5998; }
.social-links a.instagram:hover .icon { color: #3f729b; border-color: #3f729b; }

.copyright {
  text-align: center;
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   Lightbox (replaces simpleLightbox)
   -------------------------------------------------------------------------- */
.lb-open { overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 2000; outline: 0; }
.lightbox[hidden] { display: none; }

.lb-overlay {
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.7;
  animation: lb-overlay 0.5s ease;
}
.lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1em;
}
.lb-figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  animation: lb-enter 0.3s ease;
}
.lb-figure::after {
  content: "";
  position: absolute;
  inset: 5em 0;
  z-index: -1;
  box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.6);
}
.lb-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 34px);
  max-height: calc(100dvh - 34px);
  padding: 1em 0;
  margin: 0 auto;
}
.lb-loading .lb-image { visibility: hidden; }

.lb-close,
.lb-arrow {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.lb-close:hover,
.lb-arrow:hover { opacity: 0.5; }
.lb-close:active,
.lb-arrow:active { opacity: 0.8; }

.lb-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 43px;
  height: 43px;
  font-family: var(--font-body);
  font-size: 45px;
  line-height: 43px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 5em;
  height: 10em;
  margin-top: -5em;
  opacity: 0.7;
  font-size: 15px;
}
.lb-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -0.8em 0 0 -0.8em;
  border: 0.8em solid transparent;
}
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-prev::before { border-right-color: #fff; }
.lb-next::before { border-left-color: #fff; }

@keyframes lb-overlay { from { opacity: 0; } to { opacity: 0.7; } }
@keyframes lb-enter {
  from { opacity: 0; transform: translate3d(0, -1em, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
