/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
body {
  min-height: 100%;
}

html {
  color: var(--color-text);
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
  text-shadow: none;
}

::selection {
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 25%, transparent);
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  /* --color-primary: #0752c4; */
  --color-primary: #0f43b4;
  --color-accent: #417cf3;
  --color-accent-2: #e4790d;
  --color-background: #fbfbfb;
  --color-text: #061638;

  --weight-h1: 800;
  --weight-h2: 700;
  --weight-h3: 600;
  --weight-h4: 500;

  --weight-body: 400;
  --weight-strong: 700;

  --radius: 10px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

body{
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-background);
  padding: 0 5%;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
  will-change: opacity;
  box-sizing: border-box;
}

.site-main {
  flex: 1 1 auto;
  min-height: 0;
  /* padding: 3rem 0; */
}

.site-footer {
  margin-top: auto;
}

body.page-ready {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-family-heading, "Lexend", sans-serif);
  color: var(--color-primary);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-weight: var(--weight-h1);
  font-size: 2.5rem;
}

h2 {
  font-weight: var(--weight-h2);
  font-size: 2rem;
}

h3 {
  font-weight: var(--weight-h3);
  font-size: 1.75rem;
}

h4 {
  font-weight: var(--weight-h4);
  font-size: 1.5rem;
}

p {
  font-family: var(--font-family-body, "Lexend", sans-serif);
  font-weight: var(--weight-body);
  margin-bottom: 1rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  /* margin-bottom: 2rem; */
  padding: 1rem 0;
  width: 100%;
  background: transparent;
}

.site-header h1 {
  font-size: 2rem;
  font-weight: var(--weight-h1);
  margin: 0;
}

.site-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-brand a {
  display: inline-flex;
  align-items: center;
}

.site-brand img,
.site-brand svg {
  display: block;
  height: 3.5rem;
  width: auto;
}

.site-brand svg {
  width: 100%;
  max-width: 160px;
  height: auto;
  overflow: visible;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.site-nav a {
  font-family: var(--font-family-body, "Lexend", sans-serif);
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent);
}

.gallery-section {
  margin: 0;
}

.section-header {
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.section-header p {
  margin-top: 0.5rem;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.about-gallery .gallery-grid {
  max-width: 520px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-gallery .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery-card {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid color-mix(in srgb, var(--color-accent) 12%, transparent);
  background: var(--color-background);
  transition: transform 0.25s ease;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-gallery .gallery-card:hover,
.about-gallery .gallery-card:focus-within {
  transform: none;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.about-gallery .gallery-card img {
  cursor: default;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-card h1 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--color-primary);
}

.gallery-card p {
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
  line-height: 1.35;
}

.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--color-background) 92%, transparent);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.fullscreen-overlay.active {
  opacity: 1;
}

.fullscreen-overlay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 40px color-mix(in srgb, var(--color-text) 35%, transparent);
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: left;
  color: color-mix(in srgb, var(--color-text) 75%, transparent);
  font-size: 0.95rem;
}

#ek-logo{
  color: var(--color-primary);
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}