/* Fonts */

@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,500;6..96,600;6..96,700&family=Lora:wght@400;500;600;700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Italiana&family=Lora:ital,wght@0,400..700;1,400..700&family=Petit+Formal+Script&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Prata&family=Spectral:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap");

/* Main colours */

:root {
  --color-background: #100c09;
  --color-background-soft: #201511;

  --color-gold: #b8874f;
  --color-gold2: #c19856;
  --color-gold-light: #d4ad78;
  --color-gold-light2: #f2c587;
  --color-gold-dark: #96673b;
  --color-gold-faint: #d4ae787d;

  --color-cream: #f4eadc;
  --color-cream-dark: #c29f78;

  --color-brown: #593822;
  --color-brown-light: #6a5345;

  --color-navy: #251f2b;

  --color-text-light: #f4eadc;
  --color-text-dark: #201511;

  --color-border: rgba(184, 135, 79, 0.45);
  --color-nav: rgba(182, 132, 74, 0.204);

  --color-tribute-section: #17100c;
  --color-card-background: #f3e8d7;
  --color-card-heading: #8a5d31;
  --color-card-text: #45342a;
  --color-card-signature: #a06d38;
  --color-card-border: rgba(184, 135, 79, 0.4);
}

/* Default reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  background-color: var(--color-background);
  color: var(--color-text-light);

  font-family: "Lora", serif;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a,
p {
  margin-left: 0.4rem;

  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin-left: 1.2rem;

  color: var(--color-gold);

  font-family: "Bodoni Moda", serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;

  border: 1px var(--color-gold-light);
  border-style: none none solid none;

  background-color: var(--color-nav);
}

.site-title {
  margin-left: 1rem;

  color: var(--color-gold);

  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;

  gap: 1.3rem;
  padding: 0.7rem;

  font-size: 18px;
  font-weight: 600;
}

.site-nav a {
  color: var(--color-gold2);

  text-decoration: none;

  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: var(--color-gold-dark);
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  width: calc(100% - 4rem);
  min-height: 80vh;

  text-align: center;
}

.ed-img {
  background-image:
    linear-gradient(
      120deg,
      rgba(21, 21, 20, 0.724) 0%,
      rgba(0, 0, 0, 0.46) 50%,
      rgba(237, 221, 83, 0) 100%
    ),
    url("./assets/images/edley.png");

  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero-heading-t {
  margin-bottom: 0.75rem;

  font-size: clamp(2rem, 3vw, 2.5rem);
}

.hero-heading {
  font-family: "Tangerine", cursive;
  font-size: clamp(4rem, 7vw, 5.5rem);
}

.hero-heading-b {
  margin-top: 0.8rem;

  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.hero-heading,
.hero-heading-t,
.hero-heading-b {
  line-height: 1;
}

.hero-para {
  width: 100%;
  max-width: 54rem;

  padding: 10px;

  text-align: start;

  font-family: "Spectral", serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.tribute-btn {
  margin-left: 1rem;
  padding: 8px;

  border: solid 1px var(--color-gold-faint);
  border-radius: 8px;

  background-color: var(--color-nav);
  color: var(--color-gold-light2);

  font-size: 20px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.tribute-btn:hover {
  color: var(--color-cream);

  transform: translateY(-0.9px);

  box-shadow: 0 0 10px rgba(212, 173, 120, 0.45);
}

/* Tribute section */

.tribute {
  padding: 3rem 1rem;

  background-color: var(--color-tribute-section);
}

.love-heading {
  margin-bottom: 2rem;

  text-align: center;
}

/* Tribute cards */

.tb-cards-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;

  gap: 1rem;

  width: 100%;
  max-width: 1200px;

  margin: 0 auto;
}

.tribute-card {
  display: flex;
  flex-direction: column;

  width: 16rem;
  min-height: 20rem;

  padding: 1rem;

  border: 1px solid var(--color-card-border);
  border-radius: 8px;

  background-color: var(--color-card-background);
}

.card-heading {
  margin-bottom: 1rem;

  color: var(--color-card-heading);

  font-family: "Prata", serif;
}

.tribute-text {
  color: var(--color-card-text);

  font-family: "Spectral", serif;
}

.tributer {
  margin-top: auto;
  padding-top: 1rem;

  color: var(--color-card-signature);

  font-family: "Spectral", serif;
  font-style: italic;
}

/* Gallery */

.gallery {
  padding: 4rem 1rem;
  background-color: var(--color-tribute-section);

}

.gallery-heading {
  width: 100%;
  max-width: 42rem;

  margin: 0 auto 2rem;

  text-align: center;
}

.gallery-heading h2 {
  margin: 0 0 1rem;

  color: var(--color-gold);
}

.gallery-heading p {
  margin: 0;

  color: var(--color-cream-dark);

  font-family: "Spectral", serif;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 1rem;

  width: 100%;
  max-width: 1100px;

  margin: 0 auto;
}

.gallery-photo {
  height: 19rem;
  padding: 0;

  overflow: hidden;

  border: 1px solid var(--color-border);
  border-radius: 8px;

  background-color: var(--color-background);

  cursor: pointer;
}

.gallery-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.gallery-photo:hover img {
  transform: scale(1.04);
  filter: brightness(0.8);
}

.gallery-photo:focus-visible {
  outline: 3px solid var(--color-gold-light);
  outline-offset: 3px;
}
/* Gallery videos */

.gallery-video {
  position: relative;
}

.gallery-photo video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.gallery-photo:hover video {
  transform: scale(1.04);
  filter: brightness(0.7);
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;

  display: grid;
  place-items: center;

  width: 3.5rem;
  height: 3.5rem;

  border: 1px solid var(--color-gold-light);
  border-radius: 50%;

  background-color: rgba(16, 12, 9, 0.8);
  color: var(--color-cream);

  font-size: 1.2rem;

  transform: translate(-50%, -50%);

  pointer-events: none;
}

/* Lightbox video */

.lightbox-video {
  display: none;

  width: auto;
  max-width: 90%;
  max-height: 75vh;

  border: 1px solid var(--color-border);
  border-radius: 8px;

  background-color: black;

  box-shadow:
    0 0 20px rgba(212, 173, 120, 0.15),
    0 0 50px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .lightbox-video {
    max-width: 100%;
    max-height: 72vh;
  }
}
/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;

  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 1.25rem;
  padding: 2rem;

  background-color: rgba(16, 12, 9, 0.95);
}

.lightbox-open {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 75vh;

  border: 1px solid var(--color-border);
  border-radius: 8px;

  object-fit: contain;

  box-shadow:
    0 0 20px rgba(212, 173, 120, 0.15),
    0 0 50px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;

  padding: 0;

  border: none;

  background: none;
  color: var(--color-cream);

  font-size: 3rem;
  line-height: 1;

  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--color-gold-light);
}

.lightbox-download {
  margin-left: 0;
  padding: 0.8rem 1.5rem;

  border: 1px solid var(--color-gold);
  border-radius: 6px;

  background-color: var(--color-gold-dark);
  color: var(--color-cream);

  font-family: "Spectral", serif;
  font-weight: 600;

  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.lightbox-download:hover {
  background-color: var(--color-gold);

  transform: translateY(-2px);

  box-shadow: 0 0 15px rgba(212, 173, 120, 0.4);
}

/* Loading screen */

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--color-background);

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.loader {
  padding: 1rem;

  color: var(--color-gold-light);

  font-family: "Tangerine", cursive;
  font-size: 5rem;
  font-weight: 700;

  letter-spacing: 0.05rem;
  word-spacing: 0.15rem;
  text-align: center;

  animation: loader-pulse 1.5s ease-in-out;
}

.loader::before {
  content: "Remembering Edley Gibbons";
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loader-pulse {
  0% {
    opacity: 0.3;
    transform: scale(0.96);
  }

  100% {
    opacity: 1;
    transform: scale(1);

    text-shadow: 0 0 20px rgba(212, 173, 120, 0.5);
  }
}

/* Tribute form popup */

.tribute-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: none;
  justify-content: center;
  align-items: center;

  padding: 1rem;

  background-color: rgba(16, 12, 9, 0.9);
}

.tribute-modal-open {
  display: flex;
}

.tribute-form-container {
  position: relative;

  width: 100%;
  max-width: 35rem;

  padding: 2.5rem;

  border: 1px solid var(--color-card-border);
  border-radius: 12px;

  background-color: var(--color-card-background);

  box-shadow:
    0 0 20px rgba(212, 173, 120, 0.15),
    0 0 40px rgba(0, 0, 0, 0.5);
}

.close-tribute-modal {
  position: absolute;
  top: 0.75rem;
  right: 1rem;

  border: none;

  background: none;
  color: var(--color-card-heading);

  font-size: 2rem;
  line-height: 1;

  cursor: pointer;
}

.close-tribute-modal:hover {
  color: var(--color-gold);
}

.tribute-form-heading {
  margin-bottom: 0.75rem;

  color: var(--color-card-heading);

  font-family: "Prata", serif;
  text-align: center;
}

.tribute-form-intro {
  margin-bottom: 2rem;

  color: var(--color-card-text);

  font-family: "Spectral", serif;
  text-align: center;
}

.tribute-form {
  display: flex;
  flex-direction: column;

  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;

  gap: 0.5rem;
}

.form-group label {
  color: var(--color-card-heading);

  font-family: "Spectral", serif;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;

  padding: 0.8rem;

  border: 1px solid var(--color-card-border);
  border-radius: 6px;

  outline: none;

  background-color: #fffaf2;
  color: var(--color-card-text);

  font-family: "Spectral", serif;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);

  box-shadow: 0 0 8px rgba(212, 173, 120, 0.3);
}

.submit-tribute-btn {
  padding: 0.8rem 1.5rem;

  border: 1px solid var(--color-gold);
  border-radius: 6px;

  background-color: var(--color-gold-dark);
  color: var(--color-cream);

  font-family: "Spectral", serif;

  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.submit-tribute-btn:hover {
  background-color: var(--color-gold);

  transform: translateY(-2px);

  box-shadow: 0 0 15px rgba(212, 173, 120, 0.4);
}

/* Contact */

.contact {
  padding: 3rem 1rem;

  background-color: var(--color-background);

  text-align: center;
}

.contact h2 {
  margin-bottom: 2rem;

  color: var(--color-gold);
}

.contact ul {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 1rem;

  list-style: none;
}

.contact li {
  display: flex;
  align-items: center;

  gap: 0.5rem;
}

.contact li img {
  width: 1.5rem;
  height: 1.5rem;

  flex-shrink: 0;
}

.contact li a {
  color: var(--color-gold-light);

  font-family: "Spectral", serif;

  transition: color 0.3s ease;
}

.contact li a:hover {
  color: var(--color-cream);
}

.contact-para {
  width: 100%;
  max-width: 40rem;

  margin: 2rem auto 0;

  color: var(--color-cream-dark);

  font-family: "Spectral", serif;
  line-height: 1.7;
}

/* Footer */

footer {
  padding: 1.5rem;

  border-top: 1px solid var(--color-border);

  color: var(--color-gold-dark);

  text-align: center;
}

/* Tablet */

@media (max-width: 900px) {
  .hero {
    width: calc(100% - 2rem);

    margin: 1rem;
  }

  .hero-para {
    max-width: 40rem;
  }

  .tribute-card {
    width: calc(50% - 2rem);
    max-width: 22rem;
  }

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

/* Mobile form */

@media (max-width: 600px) {
  .tribute-form-container {
    padding: 2rem 1.25rem;
  }
}

/* Mobile*/

@media (max-width: 768px) {
  .loader {
    font-size: 3.5rem;
  }

  .site-header {
    flex-direction: column;
    justify-content: center;
  }

  .site-title {
    margin: 1rem 0 0;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;

    gap: 1rem;

    font-size: 15px;
  }

  .hero {
    align-items: center;

    width: calc(100% - 2rem);
    min-height: 75vh;

    margin: 1rem;
    padding: 2rem 1rem;

    text-align: center;
  }

  .ed-img {
    background-position: 65% center;
  }

  .hero-heading-t {
    font-size: 1.8rem;
  }

  .hero-heading {
    font-size: clamp(3.5rem, 15vw, 5rem);
  }

  .hero-heading-b {
    font-size: 1.2rem;
  }

  .hero-para {
    width: 100%;
    max-width: 100%;

    padding: 1rem 0;

    text-align: center;

    font-size: 1rem;
  }

  .tribute-btn {
    font-size: 1rem;
  }

  .tribute {
    padding: 3rem 1rem;
  }

  .tb-cards-container {
    flex-direction: column;
    align-items: center;
  }

  .tribute-card {
    width: 100%;
    max-width: 24rem;
    min-height: 18rem;
  }

  .gallery {
    padding: 3rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-photo {
    height: 21rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: 72vh;
  }

  .contact {
    padding: 2.5rem 1rem;
  }

  .contact li {
    gap: 0.4rem;
  }

  .contact li img {
    width: 1.3rem;
    height: 1.3rem;
  }

  .contact li a {
    font-size: 0.95rem;
  }

  .contact-para {
    font-size: 0.95rem;
  }
}

/* Small mobile */

@media (max-width: 480px) {
  .loader {
    font-size: 3rem;
  }

  .site-title {
    font-size: 0.9rem;
  }

  .site-nav {
    gap: 0.75rem;
    padding: 0.8rem;

    font-size: 13px;
  }

  .hero {
    min-height: 80vh;

    padding: 2rem 0.75rem;
  }

  .hero-heading-t {
    font-size: 1.5rem;
  }

  .hero-heading {
    font-size: 3.7rem;
  }

  .hero-heading-b {
    font-size: 1rem;
  }

  .hero-para {
    font-size: 0.95rem;
  }

  .ed-img {
    background-position: 70% center;
  }

  .tribute-card {
    width: 100%;
    min-height: auto;
  }

  .gallery-photo {
    height: 18rem;
  }

  .lightbox-download {
    width: 100%;

    text-align: center;
  }
}