:root {
  --main-color: #e0c081;
  --bg-color: #000;
  --text-color: #fff;
  --padding-large: 80px;
  --font-family-primary: "Arial", "Courier New", Courier;
  --font-family-secondary: "EB Garamond", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  text-align: center;
  min-height: 100vh;
}

.hero {
  background-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 60%,
      rgba(0, 0, 0, 0.3) 100%
    ),
    url("../images/szabó-miklós-szivar-sommelier-hero.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-title {
  font-family: var(--font-family-secondary);
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--main-color);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  border-radius: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--padding-large);
  margin: -100px 0;
}

.service-title {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--main-color);
  font-size: 1rem;
}

ul {
  list-style-position: outside;
  padding-left: 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

li {
  margin-bottom: 10px;
}

.about-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1000px;
  width: 100%;
  margin: var(--padding-large) 0;
}

.sommelier-intro {
  max-width: 600px;
  text-align: justify;
  margin-right: 25px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 5px;
  color: var(--main-color);
}

.sommelier-photo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sommelier-photo img {
  width: 400px;
  border: 5px solid var(--main-color);
  margin-bottom: 20px;
}

.contact-info {
  padding: 10px 0;
  color: var(--main-color);
}

.contact-value a {
  color: var(--text-color);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

.gallery {
  padding: var(--padding-large) 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: -50px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-item {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 2px solid var(--main-color);
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.lightbox-content-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-nav {
  color: var(--main-color);
  font-size: 50px;
  cursor: pointer;
  transition: color 0.3s;
  margin: 0 20px;
}

.lightbox-nav.prev {
  order: -1;
}

.lightbox-nav.next {
  order: 1;
}

.lightbox-nav:hover {
  color: var(--text-color);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--main-color);
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s;
  padding: 5px;
}

.lightbox-close:hover {
  color: var(--text-color);
}

footer {
  color: var(--main-color);
  font-size: 0.8rem;
  padding: 20px;
}

footer a {
  color: var(--text-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sommelier-intro {
    margin-right: 0;
    padding: 0 5vw;
  }

  .sommelier-photo {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .contact-info {
    margin-top: -175px;
    margin-bottom: -40px;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 0;
    margin: 10px;
  }

  .about-content {
    flex-direction: column;
    width: 100vw;
    margin: 0;
    margin-top: 20px;
    padding: 0;
  }

  .sommelier-intro {
    padding: 0 5vw;
    text-align: justify;
  }

  .sommelier-photo {
    margin-top: 20px;
    padding: 0 5vw;
    text-align: center;
  }

  .contact-info {
    margin-top: -20px;
    margin-bottom: -40px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .sommelier-photo img {
    width: 250px;
  }
}
