/* andymarinphotography.com look for the daily surf galleries
   (dot-gallery-look.sh). Loaded after style.css, so it wins; style.css
   itself is unchanged. Fonts: the same files as the main site.
   Heading = the site's H1 (Cormorant, bold); date = the site's paragraph
   text (Jost); background = the site's white. The full-screen photo viewer
   stays dark on purpose. */

@font-face {
  font-family: Cormorant;
  src: url('../fonts/cormorant-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Jost;
  src: url('../fonts/jost-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

body {
  background-color: #ffffff;
  color: #333333;
  text-shadow: none;
}
a, a:link, a:visited { color: #696969; }
a:hover { color: #111111; }

/* heading and date: centred, full width (style.css puts the heading in a
   half-width box on wide screens) */
header { color: #111111; text-align: center; }
header h1, #menu { display: block; width: auto; }
header h1 {
  margin: 10px 0 0;
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 700;
  font-variation-settings: "wght" 700;
  font-size: clamp(32px, calc(25.78px + 1.595vw), 48.75px);   /* the site's H1: 32px on phones, 48.75px on desktop */
  letter-spacing: -0.03em;
  line-height: 1.2;
}
header h1 a, header h1 a:link, header h1 a:visited, header h1 a:hover {
  color: #000000;
  text-shadow: none;
}
header .breadcrumb h2 {
  margin: 6px 0 10px;
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  font-size: clamp(21.75px, calc(21.21px + 0.138vw), 23.2px);  /* the site's paragraph text */
  letter-spacing: 0.18em;
  line-height: 1.6;
}
header .breadcrumb h2 a, header .breadcrumb h2 a:link, header .breadcrumb h2 a:visited {
  color: #333333;
  text-decoration: none;
  text-shadow: none;
}
header hr { border: 0; border-top: 1px solid #d5d5d5; }

/* photos: white between them, light grey while one is still loading */
.editorial-grid .grid-item { background: #f3f3f3; }

/* the list of all galleries (gallery.andymarinphotography.com/) */
.album_title { color: #111111; font-family: 'Jost', system-ui, sans-serif; font-variant: normal; font-weight: 500; letter-spacing: 0.05em; }
#albums ul li a img { box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15); }

footer { color: #6c6c6f; font-family: 'Jost', system-ui, sans-serif; font-size: 13px; letter-spacing: 0.1em; }

/* ---- daily look (daily-gallery-look.py) ----
   Daily Surf Galleries only:
   - photos whole, never cropped, in columns with space around them
     (1 on phones, 2 on tablets, 3 on computers)
   - HOME and SURF GALLERIES buttons in the website's button style
   - the website's footer (its styles copied from the website's custom.css,
     with the website's text size as --site-rem) */
:root {
  --lux-ivory: #FAF8F5; --lux-paper: #FFFDFA; --lux-ink: #1C1C1C; --lux-text: #34312D;
  --lux-line: rgba(28, 28, 28, .09); --gray-1: #6C6C6F;
  --site-rem: clamp(21.6px, calc(21.6px + (100vw - 320px) * 0.1 / 46), 23.2px);
  --dg-gap: clamp(20px, 3.2vw, 56px);
}
html, body { overflow-x: clip; }

.editorial-grid {
  display: block !important;
  columns: 1;
  column-gap: var(--dg-gap) !important;
  box-sizing: border-box;
  max-width: 1360px;
  margin: 0 auto !important;
  padding: clamp(36px, 5vw, 80px) clamp(0px, 4vw, 56px) 0 !important;
}
@media (min-width: 600px) { .editorial-grid { columns: 2; } }
@media (min-width: 1024px) { .editorial-grid { columns: 3; } }
.editorial-grid .grid-item,
.editorial-grid .grid-item[class*="span-"] {
  display: block !important;
  position: relative;
  break-inside: avoid;
  margin: 0 0 var(--dg-gap) !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  background: none;
  overflow: hidden;
}
.editorial-grid .grid-item img,
.editorial-grid .grid-item:hover img {
  position: static !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  transform: none !important;
  box-shadow: 0 18px 50px rgba(60, 45, 30, .10);
}

.daily-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: clamp(28px, 4vw, 56px) auto 0; }
.daily-btn, .daily-btn:link, .daily-btn:visited {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; height: 28px; min-width: 130px; padding: 0 26px;
  border: 1px solid #1C1C1C; border-radius: 0; background: transparent;
  color: #1C1C1C !important; text-decoration: none; text-shadow: none;
  font-family: 'Jost', system-ui, sans-serif; font-weight: 500; font-variation-settings: "wght" 500;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
  transition: background-color .45s ease, color .45s ease;
}
.daily-btn:hover, .daily-btn:focus-visible { background: #1C1C1C; color: #FAF8F5 !important; }

/* the website's footer, edge to edge */
footer.footer--lux {
  font-family: 'Jost', system-ui, sans-serif; font-size: var(--site-rem); line-height: 1.6;
  letter-spacing: normal; text-shadow: none;
  margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
}
footer.footer--lux span::after { content: none !important; }
footer.footer--lux img { max-width: none; }
footer.footer--lux a { text-decoration: none; }
/* the website's text weight (Jost at 350); the gallery theme made footer links bold */
footer.footer--lux, footer.footer--lux p { font-weight: 400; font-variation-settings: "wght" 350; }
footer.footer--lux a, footer.footer--lux a:link, footer.footer--lux a:visited {
  font-weight: inherit !important; font-variation-settings: inherit !important; letter-spacing: inherit !important;
}

.footer.footer--lux {
    height: auto;
    display: block;
    background: var(--lux-ivory);
    border-top: 1px solid var(--lux-line);
    margin: clamp(56px, 7vw, 110px) 0 0;
    padding: clamp(56px, 7vw, 104px) 20px clamp(32px, 4vw, 52px);
    text-align: center;
    color: var(--lux-text);
}
@media (max-width: 768px) {
    .footer.footer--lux { margin-left: -15px; margin-right: -15px; }   /* edge to edge on phones */
}
.footer--lux p { margin: 0; }
.footer--lux a, .footer--lux a:hover, .footer--lux a:focus { color: var(--lux-ink); }
.footer--lux a { transition: opacity .4s ease; }
.footer--lux a:hover { opacity: .55; }
.footer--lux a:focus-visible { outline: 1px solid var(--lux-ink); outline-offset: 4px; }
.footer__logo { display: inline-block; }
.footer__logo img { display: block; height: clamp(66px, 6.5vw, 88px); width: auto; margin: 0 auto; }
.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(.6 * var(--site-rem)) clamp(calc(1.4 * var(--site-rem)), 3vw, calc(2.6 * var(--site-rem)));
    margin-top: clamp(28px, 3vw, 40px);
}
.footer__links a {
    font-size: calc(.6 * var(--site-rem));
    letter-spacing: .26em;
    margin-right: -.26em;                /* no gap after the last letter */
    text-transform: uppercase;
    font-variation-settings: "wght" 420;
}
.footer__contact { margin-top: clamp(26px, 2.8vw, 36px) !important; font-size: calc(.74 * var(--site-rem)); letter-spacing: .04em; }
.footer__social { margin-top: clamp(30px, 3.2vw, 44px) !important; line-height: 0; }
.footer__social a { display: inline-block; padding: 6px; }
.footer__social svg { margin: 0; height: 20px; width: 20px; fill: none; opacity: 1; }   /* undo the theme's footer icon style */
.footer__small {
    font-size: calc(.5 * var(--site-rem));
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gray-1);
    margin-top: clamp(30px, 3.4vw, 44px) !important;
}
.footer__small.footer__copy { margin-top: 8px !important; }

/* ---- end daily look ---- */
