/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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 {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #964691;
  color: #fff;
  text-shadow: none;
}

::selection {
  background: #964691;
  color: #fff;
  text-shadow: none;
}

a {
  outline: none;
  text-decoration: none;
}

a:link {
  color: #555555;
  transition: color 0.18s ease, background 0.18s ease;
}

a:visited {
  color: #555555;
}

a:focus {
  text-decoration: none;
  background: #7c7c7c;
  color: white;
}

a:hover {
  text-decoration: none;
  color: white;
  background: #555555;
}

a:active {
  background: #555555;
  color: white;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  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
   ========================================================================== */

/* ==========================================================================
   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
 */

.sr-only {
  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 .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.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
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. 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;
}

.pattern {
  background: #964691;
}

.main-header {
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 15px 0px 30px 0px;
}

.photo-a {
  margin-top: 18px;
}

.photo {
  border: 5px solid white;
  width: 175px;
  border-radius: 50%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.photo:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

header {
  color: white;
}
header h2 {
  font-size: 30px;
  line-height: 29px;
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montagu Slab", serif;
}

.header-info h1 {
  font-size: 100px;
  line-height: 100px;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

.header-info {
  padding-left: 20px;
}

.intro-header {
  margin: 0;
  padding: 0;
  font-weight: 100;
  padding-top: 5px;
}

.top-menu {
  padding-top: 26px;
}

h2 {
  margin: 0;
  text-align: left;
}

.top-menu ul {
  margin: 0px;
  padding: 0px;
  display: flex;
  align-content: center;
  justify-content: space-between;
  align-items: center;
}

.top-menu ul li {
  list-style-type: none;
}

.top-menu ul li a {
  position: relative;
  box-sizing: border-box;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  height: 36px;
  vertical-align: middle;
  text-align: center;
  text-overflow: ellipsis;
  color: white;
  fill: white;
  background-color: hsla(0, 0%, 100%, 0.3);
  font-weight: 500;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.top-menu ul li a:hover {
  box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%),
    0 1px 10px 0 rgb(0 0 0 / 12%);
  background-color: hsla(0, 0%, 100%, 0.92);
  color: #333;
  fill: #333;
  transform: translateY(-1px);
}

.top-menu ul li a,
.top-menu ul li a * {
  color: white;
  text-decoration: none;
  font-size: 20px;
}

.contain {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 0px;
  border-bottom: 2px dashed #f2f2f2;
}

.contain h2 {
  font-size: 65px;
  line-height: 65px;
  color: #555;
}

.contain aside {
  text-align: right;
}

.contain aside a,
.end {
  font-size: 30px;
  font-family: "Montagu Slab", serif;
  text-align: center;
}
.contain-section {
  padding: 20px 0px;
}
.contain-about {
  text-align: left;
  display: flex;
  justify-content: flex-start;
  align-content: center;
  flex-direction: row;
  align-items: center;
}

.contain-text {
  padding: 20px;
  font-weight: 300;
  font-size: 23px;
}

.about-photo {
  max-width: 40vh;
  object-fit: cover;
  height: 45vh;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.about-photo:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transform: scale(1.01);
}

.footer {
  display: flex;
  padding-top: 50px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-evenly;
  align-items: flex-start;
}

.footer h4 {
  color: white;
  font-size: 45px;
  margin: 0;
  padding: 0;
}

.footer-section ul {
  color: white;
  list-style-type: square;
  margin: 0;
  padding: 0;
  padding-left: 20px;
  font-size: 20px;
  margin-left: -4px;
}

.footer-section a {
  text-transform: lowercase;
  color: white;
  transition: opacity 0.18s ease;
}

.footer-section a:hover {
  opacity: 0.75;
  background: none;
}

.end {
  color: white;
  font-weight: bold;
  font-size: 35px;
  padding-top: 80px;
  padding-bottom: 50px;
}

/* CARDS */
:root {
  --gutter: 5px;
}

.box-wrap {
  padding: var(--gutter) 0;
  display: grid;
  grid-gap: var(--gutter) 0;
  /* grid-template-columns: var(--gutter) 1fr var(--gutter); */
  align-content: start;
}

.box-wrap > * {
  grid-column: 2 / -2;
}

.box-wrap > .full {
  grid-column: 1 / -1;
}

.boxs {
  display: grid;
  grid-template-columns: 10px;
  /*grid-template-rows: minmax(200px, 1fr);*/
  grid-auto-flow: column;
  /*grid-auto-columns: calc(50% - var(--gutter) * 2);*/

  overflow-x: scroll;
  scroll-snap-type: x proximity;
  padding-bottom: calc(0.75 * var(--gutter));
  margin-bottom: calc(-0.25 * var(--gutter));
}

.boxs a,
.boxs a:hover,
.boxs a:link,
.boxs a:visited {
  text-decoration: none;
  color: #555;
  background: white;
}

header a,
header a:link,
header a:hover,
header a:visited,
header a:focus {
  color: white;
  background: none;
}

.boxs .box:hover,
.news .box:hover,
.boxs .box:focus,
.news .box:focus,
.boxs .box:active,
.news .box:active {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px) scale(1.03);
}

.contain .box figure {
  padding: 0;
  margin: 0;
}

.post video {
  max-width: 100%;
}

.contain .box img {
  width: 230px;
  height: 100px;
  object-fit: cover;
}

.boxs:before,
.boxs:after {
  content: "";
  width: 0px;
}

.contain .box {
  border: 1px solid #ddd;
  padding: 0;
  margin: 40px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform-origin: center top;
  transform-style: preserve-3d;
  transform: translateZ(0);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  width: 230px;
  border-radius: 4px;
  overflow: hidden;
}

.contain .box figcaption {
  padding: 5px;
  margin: 5px;
}

.contain-photos .boxs {
  grid-auto-columns: 220px;
}

.contain-photos .boxs a {
  overflow: hidden;
}

.contain-photos .box {
  width: 200px;
  height: 200px;
}

.contain-photos .box img {
  cursor: pointer;
  width: 200px;
  padding: 0px;
  height: 200px;
}

/* width */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #888;
}

@media only screen and (max-width: 950px) {
  .contain h2 {
    font-size: 7vw;
    line-height: 7vw;
  }
  .contain-about {
    flex-direction: column;
  }

  .main-header {
    padding: 0;
    padding-bottom: 10px;
    flex-direction: column;
  }
  .photo {
    width: 10vw;
    padding: 0;
    margin: 5px;
    border-width: 0.5vw;
    border-radius: 50%;
  }
  .header-info {
    padding: 0;
    margin: 0;
  }
  .header-info h1 {
    font-size: 13vw;
    line-height: 13vw;
  }
  .header-info h2 {
    font-size: 3.7vw;
    line-height: 3.7vw;
  }
  .top-menu {
    padding-top: 10px;
  }
  .top-menu ul li a {
    font-size: 3vw;
    margin: 0px 2px;
  }

  .top-menu ul li svg {
    max-height: 3vw;
  }

  .about-photo {
    max-width: 30vh;
    object-fit: cover;
    height: 30vh;
  }

  .footer h4 {
    font-size: 4vw;
  }
  .end {
    font-size: 4vw;
  }
}

@media only screen and (max-width: 500px) {
  .footer {
    justify-content: center;
    flex-direction: column;
    margin-left: 20px;
  }
  .footer-section {
    margin-bottom: 20px;
  }
  .footer h4 {
    font-size: 8vw;
  }
}

/* Extra Small Devices, Phones */
@media only screen and (min-width: 480px) {
}

/* Small Devices, Tablets */
@media only screen and (min-width: 768px) {
}

/* Medium Devices, Desktops */
@media only screen and (min-width: 992px) {
}

/* ==============================================
  2026
   ============================================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Keyboard focus ring — brand purple */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #f1f1f1;
  outline-offset: 3px;
}

/* Section divider — slightly softer dashed line */
.contain {
  border-bottom-color: #e5e5e5;
}

/* Contain h2 heading — slightly richer colour */
.contain h2 {
  color: #444;
}

/* Contain text — slightly more readable weight/colour */
.contain-text {
  color: #3a3a3a;
}

/* Card figcaption — cleaner, slightly muted */
.contain .box figcaption {
  font-size: 0.85em;
  color: #555;
  line-height: 1.4;
}

/* Card image — smooth zoom on hover */
.contain .box img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.contain .box:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

/* Photo card — smooth image transition */
.contain-photos .box img {
  transition: transform 0.3s ease, opacity 0.25s ease;
}
.contain-photos .box:hover img {
  transform: scale(1.06);
  opacity: 0.88;
}

/* Footer h4 headings — subtle letter spacing */
.footer h4 {
  letter-spacing: -0.5px;
}

/* Footer list items — add spacing */
.footer-section ul li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* End section — slightly tighter font */
.end {
  letter-spacing: -0.5px;
  opacity: 0.92;
}

/* Header h1 — tighten letter spacing slightly */
.header-info h1 {
  letter-spacing: -2px;
}

/* Top menu nav text — consistent sizing */
.top-menu ul li a,
.top-menu ul li a * {
  font-size: 18px;
}

/* Mobile about-photo match */
@media only screen and (max-width: 950px) {
  .about-photo {
    border-radius: 4px;
    max-width: 80vw;
  }
}
