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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Hero Image - First Section */
.hero-image {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 1;
  margin-bottom: 100px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  animation: slideIn 1s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(20%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Signature - Top Left (over hero) */
.signature-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  width: 150px;
  height: auto;
}

.signature {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.signature:not([src=""]) {
  opacity: 1;
}

.signature-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.signature-link:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Burger Menu - Top Right (over hero) */
.menu-toggle {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 11;
  width: 30px;
  height: 25px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Make menu white when over hero image (home page) */
.home-page .menu-toggle span {
  background-color: #ffffff;
}

/* Make menu dark when scrolled past hero image */
.home-page .menu-toggle.scrolled-past-hero span {
  background-color: #333;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Dropdown */
.menu-dropdown {
  position: fixed;
  top: 60px;
  right: 25px;
  background-color: rgba(0, 0, 0, 0.95);
  border-radius: 8px;
  padding: 15px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.menu-item {
  color: #ffffff;
  text-decoration: none;
  padding: 12px 15px;
  display: block;
  transition: background-color 0.2s ease;
  border-radius: 4px;
  font-size: 1rem;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-item-with-submenu {
  position: relative;
}

.submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.submenu-toggle .arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.menu-item-with-submenu.active .arrow {
  transform: rotate(180deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 15px;
  margin-top: 5px;
}

.menu-item-with-submenu.active .submenu {
  max-height: 500px;
}

.submenu a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s ease;
  border-radius: 4px;
  font-size: 0.9rem;
}

.submenu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-social-row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 5px;
}

.menu-social-row > * {
  margin-right: 10px;
}

.menu-social-row > *:last-child {
  margin-right: 0;
}

.menu-icon-only {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 12px;
}

.menu-icon {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  -o-object-fit: contain;
  object-fit: contain;
  border-radius: 4px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  display: block;
}

/* Intro Section */
.intro-section {
  width: 100%;
  padding: 30px 20px 40px;
  background-color: #ffffff;
  text-align: center;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: -80px;
  box-sizing: border-box;
}

.intro-section > * {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.intro-line {
  width: 150px;
  height: 1px;
  background-color: #333;
  margin: 0 auto 30px;
}

.intro-text {
  font-family: 'Cormorant Garamond', 'Playfair Display', 'Eagle Lake', 'Times New Roman', Times, serif;
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
  max-width: 800px;
  width: 100%;
  margin: 0 auto 15px;
  padding: 0;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-decoration: none !important;
  text-align: center !important;
  cursor: default;
  border: none !important;
  outline: none !important;
  border-bottom: none !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
  pointer-events: none;
  display: block;
  visibility: visible;
  opacity: 1;
  box-sizing: border-box;
}

.intro-text:hover {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  border-bottom: none !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
  color: #333 !important;
}

.intro-text:focus {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  border-bottom: none !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.intro-text:active {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  border-bottom: none !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.intro-date {
  font-family: 'Cormorant Garamond', 'Playfair Display', 'Eagle Lake', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #666;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-decoration: none !important;
  text-align: center !important;
  cursor: default;
  border: none !important;
  outline: none !important;
  border-bottom: none !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
  pointer-events: none;
  display: block;
  visibility: visible;
  opacity: 1;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.intro-date:hover {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  border-bottom: none !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
  color: #666 !important;
}

.intro-date:focus {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  border-bottom: none !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.intro-date:active {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
  border-bottom: none !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

@media (max-width: 768px) {
  .intro-section {
    padding: 40px 20px;
    margin-top: -100px;
  }
  
  .intro-text {
    font-size: 1.3rem;
    line-height: 1.6;
  }
  
  .intro-date {
    font-size: 0.9rem;
  }
}

/* Image Gallery */
.image-gallery {
  width: 100%;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -ms-flex-align: stretch;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  background-color: #ffffff;
  padding: 40px 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.image-gallery::-webkit-scrollbar {
  height: 8px;
}

.image-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.image-gallery::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.image-gallery::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.gallery-img {
  width: calc(100% / 6);
  min-width: 300px;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-img:hover {
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  z-index: 2;
  position: relative;
}

@media (max-width: 1200px) {
  .gallery-img {
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  .image-gallery {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 30px 0;
  }
  
  .gallery-img {
    width: calc(100% / 2);
    min-width: 50%;
  }
}

@media (max-width: 480px) {
  .gallery-img {
    width: 100%;
    min-width: 100%;
  }
}

/* Lofoten Section */
.lofoten-section {
  width: 100%;
  background-color: #ffffff;
  padding: 60px 20px;
}

.lofoten-top {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 10px;
  -ms-flex-align: stretch;
  align-items: stretch;
}

.lofoten-main {
  -ms-flex: 1.5;
  flex: 1.5;
  min-width: 0;
}

.lofoten-main-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.lofoten-main-img:hover {
  -ms-transform: scale(1.02);
  transform: scale(1.02);
}

.lofoten-grid {
  -ms-flex: 1;
  flex: 1;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 20px;
  min-width: 0;
}

.lofoten-text {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.story-text {
  font-family: 'Cormorant Garamond', 'Playfair Display', 'Eagle Lake', 'Times New Roman', Times, serif;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #333;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0 auto;
  letter-spacing: 0.5px;
}

.lofoten-grid-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Fallback for older browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1) {
  .lofoten-grid {
    grid-auto-rows: 1fr;
  }
}

.lofoten-grid-img:hover {
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  z-index: 2;
  position: relative;
}

@media (max-width: 768px) {
  .lofoten-top {
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 30px;
  }
  
  .lofoten-main {
    width: 100%;
  }
  
  .lofoten-text {
    width: 100%;
    padding: 0;
  }
  
  .story-text {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .lofoten-grid {
    width: 100%;
  }
}

/* Sky Section */
.sky-section {
  width: 100%;
  background-color: #ffffff;
  padding: 60px 20px;
}

.sky-top {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 10px;
  -ms-flex-align: stretch;
  align-items: flex-start;
}

.sky-main {
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  position: relative;
  align-self: flex-start;
}

.sky-main-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.sky-main-img:hover {
  -ms-transform: scale(1.02);
  transform: scale(1.02);
}

.sky-grid {
  -ms-flex: 1.5;
  flex: 1.5;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 20px;
  min-width: 0;
}

.sky-text {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.sky-grid-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Fallback for older browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1) {
  .sky-grid {
    grid-auto-rows: 1fr;
  }
}

.sky-grid-img:hover {
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  z-index: 2;
  position: relative;
}

@media (max-width: 768px) {
  .sky-top {
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 30px;
  }
  
  .sky-main {
    width: 100%;
    order: -1;
  }
  
  .sky-text {
    width: 100%;
    padding: 0;
  }
  
  .sky-grid {
    width: 100%;
  }
}

/* Animal Section */
.animal-section {
  width: 100%;
  background-color: #ffffff;
  padding: 60px 20px;
}

.animal-top {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 10px;
  -ms-flex-align: stretch;
  align-items: flex-start;
}

.animal-main {
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  position: relative;
  align-self: flex-start;
}

.animal-main-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.animal-main-img:hover {
  -ms-transform: scale(1.02);
  transform: scale(1.02);
}

.animal-grid {
  -ms-flex: 1.5;
  flex: 1.5;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 20px;
  min-width: 0;
}

.animal-text {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.animal-grid-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Fallback for older browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1) {
  .animal-grid {
    grid-auto-rows: 1fr;
  }
}

.animal-grid-img:hover {
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  z-index: 2;
  position: relative;
}

@media (max-width: 768px) {
  .animal-top {
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 30px;
  }
  
  .animal-main {
    width: 100%;
    order: -1;
  }
  
  .animal-text {
    width: 100%;
    padding: 0;
  }
  
  .animal-grid {
    width: 100%;
  }
}

/* Wood Section */
.wood-section {
  width: 100%;
  background-color: #ffffff;
  padding: 60px 20px;
}

.wood-top {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 10px;
  -ms-flex-align: stretch;
  align-items: flex-start;
}

.wood-main {
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  position: relative;
  align-self: flex-start;
}

.wood-main-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.wood-main-img:hover {
  -ms-transform: scale(1.02);
  transform: scale(1.02);
}

.wood-grid {
  -ms-flex: 1.5;
  flex: 1.5;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 20px;
  min-width: 0;
}

.wood-text {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.wood-grid-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Fallback for older browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1) {
  .wood-grid {
    grid-auto-rows: 1fr;
  }
}

.wood-grid-img:hover {
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  z-index: 2;
  position: relative;
}

@media (max-width: 768px) {
  .wood-top {
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 30px;
  }
  
  .wood-main {
    width: 100%;
    order: -1;
  }
  
  .wood-text {
    width: 100%;
    padding: 0;
  }
  
  .wood-grid {
    width: 100%;
  }
}

/* Quote Section */
.quote-section {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
}

.quote-line {
  width: 150px;
  height: 1px;
  background-color: #333;
  margin: 0 auto 10px;
}

.quote-text {
  font-family: 'Eagle Lake', 'Cinzel', 'Uncial Antiqua', cursive, serif;
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 40px;
  letter-spacing: 2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.quote-signature {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transform: translateX(-0.5cm);
}

.quote-signature-img {
  width: 200px;
  height: auto;
  opacity: 0.8;
}

/* Footer */
footer {
  width: 100%;
  text-align: center;
  padding: 2rem;
  background-color: transparent;
  color: #333;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Space for future content */
body {
  min-height: 100vh;
}

/* Contact Page Styles */
.contact-container {
  min-height: 100vh;
  padding: 120px 20px 100px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.contact-content {
  max-width: 800px;
  width: 100%;
}

.contact-content h1 {
  font-family: 'Eagle Lake', 'Cinzel', 'Uncial Antiqua', cursive, serif;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 300;
  letter-spacing: 2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  background-color: #f8f8f8;
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-item h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 400;
}

.contact-item p {
  color: #666;
  line-height: 1.8;
  margin: 0;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: #667eea;
}

.contact-social-links {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  margin-top: 3rem;
  padding: 2rem 0;
}

.contact-social-links > * {
  margin-right: 30px;
}

.contact-social-links > *:last-child {
  margin-right: 0;
}

.contact-social-link {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-decoration: none;
}

.contact-social-icon {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  -o-object-fit: contain;
  object-fit: contain;
  display: block;
  -ms-transition: -ms-transform 0.2s ease;
  transition: transform 0.2s ease;
}

.contact-social-link:hover .contact-social-icon {
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .signature-container {
    top: 15px;
    left: 15px;
    width: 120px;
  }

  .menu-toggle {
    top: 20px;
    right: 20px;
    width: 25px;
    height: 20px;
  }

  .menu-dropdown {
    top: 55px;
    right: 20px;
  }
}

