@import url('https://fonts.googleapis.com/css2?family=Bellota+Text:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Cinzel:wght@400..900&display=swap');

:root {
    --font-sans: 'Bellota Text', sans-serif;
    --font-serif: 'Cinzel', serif;
    --background: #ffffff;
    --text-color: #223344;
    --border-color: #22334455;
    --link-color: #ff9d00;
    --link-border: #00000030;
    --menu-active-background: #ffff0030;
    --select-background: #006eff50;
}

body {
    background-color: var(--background);
}

::selection {
    background-color: var(--select-background);
}

nav ::selection, header ::selection, figure ::selection {
    background-color: transparent;
}

header {
    margin: 0 auto 1rem auto;
    background-image: url(/pics/the-road-to-cornwall.jpg);
    background-size: cover;
    background-position: 50% 10%;
    min-height: 25vh;
    padding-top: 5vh;
}

.shade {
    background-color: #ffffff60;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw + 1rem, 4rem);
    margin: 0;
    text-align: center;
}

header h1 a:link, header h1 a:visited {
    color: var(--text-color);
    text-decoration: none;
}

h2 {
    font-weight: 700;
    padding-top: 1rem;
    font-size: 1.75rem;
}
.subtitle {
    margin: 0;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--neutral-color);
}


h1 {
    font-family: 'Cinzel Medium', serif;
    padding: 0 2rem;
    font-weight: medium;
}

body {
    margin: 0;
    background: --back-color;
    background: linear-gradient(
        0deg,
        var(--neutral-color) 0%,
        var(--back-color) 15%,
        var(--back-color) 100%
    );
    color: #333;
    color-scheme: dark light;
    font-family: 'Bellota Text', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    min-height: 100vh;
}

.title {
    font-size: min(3rem, 3vw + 1.5rem);
    text-align: center;
    color: var(--neutral-color);
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

#content {
    padding: 0 min(5vw, 2rem);
    max-width: 60rem;
    margin: 0 auto;
    line-height: 1.5rem;
}

#content a:link, #content a:visited {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 700;
}

.nav-list {
    display: flex;
    justify-content: space-around;
    max-width: 60rem;
    margin: 0 auto;
    padding: 0;
}

.nav-list li {
    list-style: none;
    justify-content: center;
    padding: 0;
    font-size: 1.1875rem;
    margin: 1rem 0;
    gap: min(8vw, 1.5rem);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    padding: 0;
}

ul.nav-list li a, span.here {
    display: inline-block;
    color: var(--neutral-color);
    text-decoration: none !important;
    background-color: rgba(255, 255, 0, 0);
    padding: 0.25rem 0.75rem;
    border-radius: 1em;
    border: 1px solid var(--background);
}

span.here {
    background-color: var(--menu-active-background);
    border: 1px solid var(--link-border);
}

ul.nav-list li a:hover, ul.nav-list li a:active {
    border: 1px solid var(--link-border);
}

.profile {
    display: block;
    float: right;
    width: 12rem;
    text-align: center;
    padding: 0;
}

.profile-pic {
    width: 10rem;
    border-radius: 50%;
}

/*
.slide figure {
    margin: 0;
    padding: 0;
    width: 144px;
    border-radius: 0.5rem;
}

.slide figure img {
    object-fit: cover;
    width: 144px;
    height: 144px;
}
*/

footer {
    margin: 3rem 0;
    padding: 1em 0;
    border-top: 1px solid var(--border-color);
    text-align: right;
}


.gallery-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 10px;
    width: 100%;
    padding: 0;
}

.gallery-cell {
    display: block;
    width: 100%;
    padding-bottom: 1em;
}

.gallery-cell img {
    width: 100%;
}

.gallery-cell p {
    margin: 0;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000020c0;
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#lightbox #preview {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 10px #000;
}

#lightbox #description_text {
    position: absolute;
    width: min(36em, calc(100vw - 8em));
    background: #ffffff;
    padding: 1em 2em;
    top: 2em;
    left: 2em;
    border-radius: 1em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

#show_img {
    z-index: 9999;
    position: fixed;
    top: 1em;
    left: 1em;
    width: 40px;
    height: 40px;
}



/* Kenji */

.carousel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0;
}

.chevron {
  background: none;
  border: none;
  color: #457;
  font-family: Arial, sans-serif;
  border: none;
  font-size: 48px;
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  opacity: 0.65;
}
.chevron:hover { opacity: 1; }
.chevron:disabled { opacity: 0.25; cursor: not-allowed; }

.viewport {
  flex: 1;
  overflow-x: hidden;
  overflow-y: hidden;
}

:root {
  --slot: 280px;
  --gap: 60px;
}

.belt {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap);
  will-change: transform;
  transform: translateX(0);
}

.slot {
  width: var(--slot);
  text-align: center;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.slot img {
  width: 100%;
  max-height: 35vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.slot p {
  margin: 8px 0 0.5em 0;
  font-size: 14px;
  line-height: 1.3;
}


.slot.left, .slot.right {
  transform: scale(0.85);
  opacity: 0.55;
}


.slot.center {
  transform: scale(1.05);
  opacity: 1;
}

.belt.animating {
  transition: transform 0.45s ease;
}

/* /Kenji */

@media (max-width: 720px) {
.gallery-wrapper {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 420px) {
.gallery-wrapper {
    grid-template-columns: repeat(1, 1fr);
}


/*
Source - https://stackoverflow.com/a/79839524
Posted by loxia_01, modified by community. See post 'Timeline' for change history
Retrieved 2025-12-23, License - CC BY-SA 4.0
*/

.img-container {
  width: 200px;
  height: 200px;
  border: 1px solid grey;
  overflow: hidden;
}

.zoom-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;

  &.is-zoomed {
    transform: scale(250%);
    cursor: zoom-out;
  }
}

.img-container:hover .zoom-img {
  object-fit: cover;
}

/* End of source */

