/* ========================================================= */
/* 👑 THE ROYAL HOUSE of STUART  - GLOBAL STYLE (2021)           */
/* ========================================================= */

html {
  scroll-behavior: smooth; 
}
/* === SELF-HOSTED GOOGLE FONTS === */

/* Cinzel Font */
@font-face {
  font-family: 'Cinzel';
  src: url('https://www.royalhouse.scot/css/fonts/cinzel-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('https://www.royalhouse.scot/css/fonts/cinzel-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('https://www.royalhouse.scot/css/fonts/cinzel-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('https://www.royalhouse.scot/css/fonts/cinzel-latin-900-normal.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Raleway Font */
@font-face {
  font-family: 'Raleway';
  src: url('https://www.royalhouse.scot/css/fonts/raleway-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('https://www.royalhouse.scot/css/fonts/raleway-cyrillic-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('https://www.royalhouse.scot/css/fonts/raleway-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Cinzel Decorative - Regular */
@font-face {
  font-family: 'Cinzel Decorative';
  src: url('https://www.royalhouse.scot/css/fonts/CinzelDecorative-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Cinzel Decorative - Bold */
@font-face {
  font-family: 'Cinzel Decorative';
  src: url('https://www.royalhouse.scot/css/fonts/CinzelDecorative-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Cinzel Decorative - Black */
@font-face {
  font-family: 'Cinzel Decorative';
  src: url('https://www.royalhouse.scot/css/fonts/CinzelDecorative-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* === END SELF-HOSTED GOOGLE FONTS === */

body {
  background: #000040 url("../images/background.png") no-repeat center bottom fixed;
  background-size: 100% auto;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.u-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  
}

/* HEADER */
.header {
  width: 100%;                 
  background-color: rgba(0, 0, 64, 0.9);
  border-bottom: 3px solid #dfa732;
  position: fixed;
  box-shadow: 0 5px 8px rgba(0,0,0,0.3);
  top: 0;
  left: 0;
  right: 0; 
  z-index: 1000;
}

.header img {
  display: block;
  margin: 0 auto;
  width: 140px; 
  height: auto;
}

.header__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center; 
  justify-content: center;
  position: relative;
}

.header__logo {
  display: flex;
  align-items: center;
}

/* HAMBURGER MENU */
.main-menu {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background: #000040;
  border-top: 3px solid #dfa732;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  z-index: 999;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
  
}

.main-menu.open {
  max-height: 85vh;
  opacity: 1;
  pointer-events: all;
  overflow-y: auto;
  overflow: hidden;
}

.main-menu__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.main-menu__item a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: #dfa732;
  text-transform: uppercase;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.25s ease,
              border-color 0.25s ease,
              padding-left 0.25s ease,
              background 0.25s ease;
			  
}
.main-menu__item:nth-child(4) {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 22px;
}

.main-menu__item:nth-child(4)::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(223, 167, 50, 0.7) 0%,
    rgba(223, 167, 50, 0.7) 40%,
    transparent 40%,
    transparent 60%,
    rgba(223, 167, 50, 0.7) 60%,
    rgba(223, 167, 50, 0.7) 100%
  );
}

.main-menu__item:nth-child(4)::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 20px;
  height: 20px;
  background-image: url("../images/TheCrownandCrestL.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000040;
  z-index: 2;
  padding: 3px;
}
.main-menu__item a:hover {
  color: #fff;
  border-left-color: #dfa732;
  padding-left: 42px;
  background: rgba(139,0,0,0.40);
}

.main-menu__item a.active {
  color: #fff;
  border-left: 3px solid #dfa732;
  padding-left: 42px;
  background: rgba(139,0,0,0.40);
}

.main-menu::after {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 89vh;
  min-height: 100%;
  background-image:
    url('../images/RoyalCrest.png'),
    url('../images/BCypher.png'),
    url('../images/RoyalCrestL.png'),
    url('../images/LCypher.png');
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 175px auto, 85px auto, 175px auto, 85px auto;
  background-position: 20px 10%, 240px 15%, 20px 85%, 240px 75%;
  border-left: 1px solid rgba(223, 167, 50, 0.7);
  pointer-events: none;
}

/* MOBILE */
@media (max-width: 480px) {
  .main-menu {
    flex-direction: column;
  }
  .main-menu::after {
    width: 100%;
    height: 90px;
    min-height: unset;
    border-left: none;
    border-top: 1px solid rgba(223, 167, 50, 0.25);
    background-size: 55px auto, 28px auto, 55px auto, 28px auto;
    background-position:
      calc(50% - 130px) center,
      calc(50% - 70px)  center,
      calc(50% + 70px)  center,
      calc(50% + 130px)  center;
  }
}

/* HAMBURGER BUTTON ALWAYS ON */
.header__nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1100;
  background: none;
  border: 1px solid #dfa732;
  border-radius: 2px;
  padding: 0;
}

.header__nav-toggle span,
.header__nav-toggle span::before,
.header__nav-toggle span::after {
  position: absolute;
  content: "";
  height: 3px;
  width: 22px;
  background: #dfa732;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.header__nav-toggle span::before {
  top: -8px;
}

.header__nav-toggle span::after {
  top: 8px;
}

.header__nav-toggle.active span {
  background: transparent;
}

.header__nav-toggle.active span::before {
  transform: translateX(-50%) rotate(45deg);
  top: 0;
}

.header__nav-toggle.active span::after {
  transform: translateX(-50%) rotate(-45deg);
  top: 0;
}

/* GRID SECTIONS */
.infinity-grid-section {
  margin: 20px 0;
  padding-inline: clamp(16px, 4vw, 60px);

}

/* TITLE */
.infinity-grid-section__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 10px 0;   
  display: block;
  width: 100%;
  color:#dfa732;
  padding-bottom: 4px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

/* GRID */
.infinity-grid-section__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 20px;
  
}

/* CARDS */
.infinity-card {
  background: rgba(0, 0, 64, 0.9);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  
 }

.infinity-card:hover {
  transform: translateY(-5px);
}

.infinity-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

.infinity-card__content {
  padding: 15px;
  
}

.infinity-card__prefix {
  font-size: 0.8rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
}

.infinity-card__title {
  margin: 8px 0;
  font-size: 1.2rem;
  color: #dfa732;
  font-weight: 700;
  
}

.infinity-card__summary {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.infinity-card a {
  text-decoration: none;
  color: inherit;
}

.infinity-card a:hover {
  filter: brightness(1.08);
}

/* FOOTER */
.footer {
  width: 100%;
  background-color: #000040;
  color: #dfa732;
  text-align: center;
  padding: 12px 0;
  margin-top: 40px;
  border-top: 3px solid #dfa732;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.25);
  
  position: relative;
  overflow: hidden; 
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url("../images/Thistle.png");

  background-size: 100px 100px; 
  
  background-repeat: repeat;
  background-position: center;

  opacity: 0.22; 

  z-index: 0;
  pointer-events: none;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer__menu-items {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.footer__menu-item a {
  color: #dfa732;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: color 0.3s, transform 0.2s;
  font-size: 0.95rem;
}

.footer__menu-item a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer__menu-item:not(:last-child)::after {
  content: "|";
  margin: 0 6px; 
  color: #dfa732; 
  font-weight: 900;  
}

.footer__crest {
  width: 60px;
  margin-bottom: 6px;
}

.footer__copyright {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ====================================== */
/* OVERLAY CARDS                          */
/* ====================================== */
.overlay-card {
  position: relative;
  overflow: visible;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.overlay-card:hover {
  transform: scale(1.02);
}

.overlay-card .overlay-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 6px;
}

.overlay-card:hover .overlay-image {
  transform: scale(1.02);
}

.overlay-card::before,
.overlay-card::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 10;
  transition: all 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.overlay-card::before {
  top: 12px;
  left: 12px;
  border-top: 3px solid #8B0000;
  border-left: 3px solid #8B0000;

}

.overlay-card::after {
  bottom: 12px;
  right: 12px;
  border-bottom: 3px solid #8B0000;
  border-right: 3px solid #8B0000;
}

.overlay-card:hover::before {
  opacity: 1;
  top: 8px;
  left: 8px;
}

.overlay-card:hover::after {
  opacity: 1;
  bottom: 8px;
  right: 8px;
}

/* Mobile */
@media (hover: none) {
  .overlay-card:active::before {
    opacity: 1;
    top: 8px;
    left: 8px;
  }
  .overlay-card:active::after {
    opacity: 1;
    bottom: 8px;
    right: 8px;
  }
}

.overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: white;
}

.overlay-prefix {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ccc;
}

.overlay-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 6px 0;
  color: #dfa732;
}

.overlay-summary {
  font-size: 1.3rem;
  color: #eee;
  max-width: 500px;
}

/* mobile overlay text */
@media (max-width: 768px) {
  .overlay-text {
    padding: 15px;
  }
  .overlay-title {
    font-size: 1.3rem;
  }
  .overlay-summary {
    font-size: 0.9rem;
  }
}

/* PROFILE PAGE */
.single-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.profile-image {
  flex: 1 1 400px;
  max-width: 400px;
  width: 100%;
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  object-fit: cover;
  margin-bottom: 10px;
}

.profile-description {
  flex: 1 1 480px;
  max-width: 650px;
  width: 100%;
  background-color: #000040;
  color: #ffffff;
  padding: 22px;
  border-radius: 6px;
  line-height: 1.6;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.profile-description strong {
  color: #dfa732;
}

.crest-small {
  display: block;
  margin: 10px auto;
  width: 50%;
  max-width: 280px;
  filter: brightness(1.1);
  border-radius: 4px;
} 

/* ============================== */
/* MOBILE RESPONSIVE (Under 768px) */
/* ============================== */
@media (max-width: 768px) {
  .single-profile {
    gap: 10px;
  }

  .profile-image,
  .profile-description {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }

  .profile-description {
    padding: 12px 5px; 
    font-size: 1rem;
  }
}
/* ======================================= */
/* 👑 ROYAL QUOTE STYLE                    */
/* ======================================= */

.royal-quote {
  position: relative;
  border: 2px solid #dfa732;
  padding: 60px 40px 40px 40px;
  text-align: center;
  font-weight: 700;
  font-family: 'Cinzel', serif;
  color: #dfa732;
  margin: 60px auto;
  max-width: 700px;
  background: rgba(0, 0, 64, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(223,167,50,0.4);
  line-height: 1.6;
  overflow: hidden;
}

.royal-note {
  border-top: 1px solid #dfa732;
  border-bottom: 1px solid #dfa732;
  text-align: center;
  padding: 20px;
  margin: 60px auto;
  color: #ccc;
  font-style: italic;
  font-size: 0.95rem;
}

.royal-quote::before {
  content: "“";
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 100px;
  color: #fff;
  opacity: 1;
  line-height: 1;
}

.royal-quote::after {
  content: "”";
  position: absolute;
  right: 20px;
  bottom: auto;
  font-size: 100px;
  color: #fff;
  opacity: 1;
  line-height: 1;
}

.royal-quote span {
  display: block;
  margin-top: 20px;
  color: #fff;
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
}

/* MOBILE QUOTE FIX */
@media (max-width: 768px) {
  .royal-quote {
    padding: 40px 20px;
  }
  .royal-quote::before,
  .royal-quote::after {
    font-size: 55px;
    opacity: 1;
  }
}

/* ======================================= */
/* BUTTONS & DIVIDERS                      */
/* ======================================= */

a.custom-btn,
a.enter-btn,
.custom-btn,
.enter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 15px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    
    /* Text Color (Gold) */
    color: #dfa732 !important; 
    background-color: transparent;
    
    /* Bottom-to-Top Fill Effect (#dfa732) */
    background-image: linear-gradient(#dfa732, #dfa732);
    background-repeat: no-repeat;
    background-size: 100% 0%;
    background-position: top center;
    
    /* Text Shadow & Borders */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    border-top: 2px solid #dfa732;
    border-bottom: 2px solid #dfa732;
    border-left: none;
    border-right: none;
    border-radius: 0;
    
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease, transform 0.3s ease, text-shadow 0.4s ease, background-size 0.4s ease;
}

/* Left Icon (crest.png) */
a.custom-btn::before,
a.enter-btn::before,
.custom-btn::before,
.enter-btn::before {
    content: '';
    display: inline-block;
    width: 1.9rem;
    height: 1.9rem;
    background-image: url('../images/crest.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
    transition: filter 0.4s ease;
    flex-shrink: 0;
}

/* Right Icon (crest2.png) */
a.custom-btn::after,
a.enter-btn::after,
.custom-btn::after,
.enter-btn::after {
    content: '';
    display: inline-block;
    width: 1.9rem;
    height: 1.9rem;
    background-image: url('../images/crest2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
    transition: filter 0.4s ease;
    flex-shrink: 0;
}

/* Mouse Hover State */
a.custom-btn:hover,
a.enter-btn:hover,
.custom-btn:hover,
.enter-btn:hover {
    color: #111111 !important; 
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 167, 50, 0.4);
    
    background-size: 100% 100%;
    background-position: bottom center;
}

/* Darken Icons on Hover */
a.custom-btn:hover::before,
a.enter-btn:hover::before,
a.custom-btn:hover::after,
a.enter-btn:hover::after,
.custom-btn:hover::before,
.enter-btn:hover::before,
.custom-btn:hover::after,
.enter-btn:hover::after {
    filter: brightness(0) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Mobile Responsive */
@media (max-width: 480px) {
  a.custom-btn,
  a.enter-btn,
  .custom-btn,
  .enter-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    gap: 8px;
    letter-spacing: 1.5px;
  }
  
  a.custom-btn::before,
  a.enter-btn::before,
  a.custom-btn::after,
  a.enter-btn::after,
  .custom-btn::before,
  .enter-btn::before,
  .custom-btn::after,
  .enter-btn::after {
    width: 1.3rem;
    height: 1.3rem;
  }
}
.royal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 60px 0;
}

.royal-divider hr {
  flex: 1;
  border: none;
  height: 2px;
  background-color: #dfa732;
  opacity: 0.6;
}

.royal-divider img {
  width: 60px;
  filter: brightness(1.1);
}

/* HERO IMAGE */
.royal-hero {
  width: 100%;
  overflow: hidden;
  margin-top: 150px; 
  
}

.royal-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; 
}

/* SOCIAL LINKS MOBILE */
.social-links {
  position: fixed;
  z-index: 1000;
  display: none;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .social-links {
    display: flex;
    flex-direction: row;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    background: #000040;
    padding: 0.4rem 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #dfa732;
  }

  body {
    padding-bottom: 35px; 
  }

  .social-links img {
    width: 40px; 
    height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .social-links img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 6px #dfa732;
  }
}
/* GTranslate dropdown position */
.header-lang-select {
  position: absolute;
  top: 100px; 
  right: 90px;
  z-index: 9999;
}

/* Dropdown stil */
.header-lang-select select {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #dfa732;
  background: #000040;
  color: #dfa732;
}

/* Mobile */
@media (max-width: 768px) {
  .header-lang-select {
	  bottom: 10px;
    top: auto; 
    right: 15px;
  }
  .header-lang-select select {
    font-size: 10px;
    padding: 4px 6px;
  }
}
@media (max-width: 768px) {
  .header__content {
    justify-content: flex-start !important;
  }

  .header__logo {
    justify-content: flex-start !important;
  }

  .header__logo a {
    display: flex;
    justify-content: flex-start;
  }
}
/* ===== PANJUR  ===== */

/* 8 panel */
.blinds-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  pointer-events: none;
}

.blind {
  flex: 1;
  background: rgba(0, 0, 64, 0.35); 
  transform-origin: center center;
  animation: blindOpen 1s ease-out forwards;
}

@keyframes blindOpen {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.blinds-overlay.fadeout {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}

/* =========================
   GALLERY WRAPPER
========================= */
.gallery-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* =========================
   GALLERY CONTAINER
========================= */
.gallery {
    width: 95%;
    max-width: 1000px;
    min-width: 320px;
}

/* =========================
   THUMBNAILS GRID
========================= */
.thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Desktop: 5 per row */
    gap: 12px;
}

/* =========================
   THUMBNAIL IMAGES
========================= */
.thumbnails img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 3px solid #dfa732;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.thumbnails img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* =========================
   TABLET
   3 PER ROW
========================= */
@media (max-width: 1023px) and (min-width: 600px) {
    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================
   MOBILE
   2 PER ROW
========================= */
@media (max-width: 599px) {
    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   LIGHTBOX MODAL
========================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(27, 34, 61, 0.9);
}

/* Lightbox image */
.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    border: 5px solid #dfa732;
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #dfa732;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #bbb;
}
/* ========================= */
/* CREST SIDE MOTTO          */
/* ========================= */

.header__logo {
  position: relative;
}

/* Desktop */
.header__logo::after {
  content: "NEMO ME IMPUNE LACESSIT";
  position: absolute;
  left: calc(100% + 10px); /* logo right */
  top: 50%;
  transform: translateY(-50%);
  font-family: 'serif';
  font-size: 11px;
  letter-spacing: 1px;
  color: #dfa732;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Desktop: hover */
.header__logo:hover::after {
  opacity: 1;
}

/* Mobilde focus  */
.header__logo a:focus-visible ~ ::after {
  opacity: 1;
}

/* ========================= */
/* Mobile adjustments        */
/* ========================= */
@media (max-width: 768px) {
  .header__logo::after {
    left: 100%;            
    right: 20px;          
    font-size: 9px;       
    letter-spacing: 0.5px;
  }
}
/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 15px; 
}

::-webkit-scrollbar-track {
    background: #000040; 
}

::-webkit-scrollbar-thumb {
    background-color: #dfa732; 
    border-radius: 6px;        
}

::-webkit-scrollbar-thumb:hover {
    background-color: #c9961f; 
}

/* Firefox */
html {
    scrollbar-width: auto;             
    scrollbar-color: #dfa732 #000040; 
}
#soundHint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.45);
  color: #dfa732;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 10;
  white-space: nowrap;
}
/* ======================================================= */
/* ROYAL CHRONICLE TIMELINE                               */
/* ======================================================= */

.royal-timeline-section {
  position: relative;
  padding: 0px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.royal-timeline-title {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: #dfa732;
  margin-bottom: 14px;
  text-shadow: 0 1px 0 #000, 0 2px 0 #000, 0 3px 4px rgba(0,0,0,0.5), 0 0 8px rgba(223,167,50,0.4);
}

.royal-timeline-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
  text-align: center;
  font-style: italic;
  max-width: 680px;
  margin: 0 auto 70px;
  line-height: 1.8;
  opacity: 1;
}

/* TIMELINE BASE */
.royal-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.royal-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #dfa732, transparent);
  transform: translateX(-50%);
}

/* ROW */
.royal-timeline__item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0 32px;
  margin-bottom: 70px;
  align-items: center;
}

/* LEFT / RIGHT CONTROL */
.royal-tl-left {
  grid-column: 1;
  text-align: left;
}

.royal-tl-right {
  grid-column: 3;
  text-align: left;
}

/* NODE CENTER */
.royal-timeline__node {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CREST IMAGE */
.royal-timeline__crest {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 0 6px rgba(223,167,50,0.6));
}

.royal-timeline__item:hover .royal-timeline__crest {
  transform: scale(1.25);
  filter: drop-shadow(0 0 14px rgba(223,167,50,0.9));
}

/* CONTENT BOX */
.royal-timeline__content {
  background: rgba(0, 0, 64, 0.8);
  border: 1px solid rgba(223, 167, 50, 0.25);
  border-radius: 6px;
  padding: 28px 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  transition: 0.4s ease;
}

.royal-timeline__content:hover {
  border-color: rgba(223, 167, 50, 0.65);
  box-shadow: 0 0 22px rgba(223, 167, 50, 0.2);
  transform: translateY(-3px);
}

/* TEXT */
.royal-timeline__year {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.royal-timeline__event {
  font-family: 'Cinzel', serif;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  color: #f5e6b8;
  margin-bottom: 10px;
}

.royal-timeline__desc {
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  font-weight: bold;
  color: #dfa732;
  line-height: 1.75;
  opacity: 0.85;
}

/* MOBILE FIX */
@media (max-width: 700px) {

  .royal-timeline::before {
    left: 18px;
  }

  .royal-timeline__item {
    grid-template-columns: 36px 1fr;
    gap: 0 14px;
  }

  .royal-tl-left,
  .royal-tl-right {
    grid-column: 2;
    text-align: left;
  }

  .royal-timeline__node {
    grid-column: 1;
  }

  .royal-timeline__content {
    padding: 18px 16px;
  }
}
/* ── PROCLAMATION ── */
:root {
  --gold: #dfa732;
  --dark-gold: #b8891e;
  --crimson: #8B0000;
  --navy: #000040;
  --cream: #f5f0e8;
  --parchment: #ede4cc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.royal-wrap {
  max-width: 860px;
  margin: 0 0;
  padding: 0 12px 40px;
}

/* ── DIVIDER ── */
.rdiv {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 28px;
}
.rdiv hr { flex: 1; border: none; border-top: 1px solid var(--gold); opacity: .5; }
.rdiv-icon {
  width: 28px; height: 28px;
  background: var(--gold);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  opacity: .85;
  flex-shrink: 0;
}

/* ── SECTION HEADER ── */
.sec-head {
  text-align: center;
  margin-bottom: 22px;
}
.sec-head .prefix {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.sec-head h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
}
.sec-head p {
  font-style: italic;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 6px;
}

/* ── PROCLAMATION BOX ── */
.proclamation {
  border: 1px solid var(--gold);
  border-top: 4px solid var(--gold);
  padding: 28px 32px;
  text-align: left;
  position: relative;
  background: var(--color-background-secondary);
  border-radius: 4px;
}
.proclamation::before,
.proclamation::after {
  content: '✦';
  color: var(--gold);
  font-size: 18px;
  position: absolute;
  top: 10px;
}
.proclamation::before { left: 16px; }
.proclamation::after  { right: 16px; }
.proclamation .ptext {
  font-size: 15px;
  line-height: 1.9;
  font-style: italic;
  color: var(--color-text-primary);
}
.proclamation .psig {
  margin-top: 18px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .proclamation {
    padding: 28px 16px;
  }
  .proclamation .psig {
    font-size: clamp(8px, 2.8vw, 13px);
    letter-spacing: 0.2px;
    white-space: nowrap;
  }
}

/* ================= ROOT ================= */
:root {
  --gold: #dfa732;
  --gold-light: #f0c55a;
  --gold-pale: #f5e6c0;
  --ivory: #f7f3ea;
  --text-light: #d8cdb8;
  --text-muted: #9a8e7a;
  --navy-dark: #000040;
  --black: #080a10;
}
/* ================= SECTION WRAPPER ================= */
.correspondence {
  padding: 60px 0;
  background: rgba(27, 34, 61, 0.0);
  position: relative;
}

/* top/bottom gold lines */
.correspondence::before,
.correspondence::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.correspondence::before { top: 0; }
.correspondence::after { bottom: 0; }

/* ================= LAYOUT ================= */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
}

.section-title .gold {
  color: var(--gold);
}

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ivory);
  margin-top: 16px;
}

/* ================= GRID ================= */
.letters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

/* ================= LETTER CARD ================= */
.letter-card {
  position: relative;
  background: #000040;
  border: 1px solid rgba(223,167,50,0.15);
  padding: 40px 32px;
  overflow: hidden;

  transition: transform 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* TOP HOVER GOLD LINE  */
.letter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.letter-card:hover {
  transform: translateY(-6px);
  border-color: rgba(223,167,50,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.letter-card:hover::before {
  transform: scaleX(1);
}

/* ================= CONTENT ================= */
.letter-card-crest {
  width: 60px;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(223,167,50,0.25));
}

.letter-card-date {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.letter-card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 16px;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.letter-card-source {
  font-family: 'EB Garamond', serif;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.letter-card-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.7;
text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
  border-left: 2px solid #8B0000;
  padding-left: 16px;
}

.letter-card-quote.portrait-mode {
  padding: 0;
  border-left: none;
  text-shadow: none;
  margin-top: 12px;

  position: relative;
  border-radius: 10px;
  overflow: hidden;

  width: 100%;

  aspect-ratio: 3 / 4;
}

/* IMAGE */
.letter-card-quote.portrait-mode img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 5%;

  display: block;
}

/* FRAME */
.letter-card-quote.portrait-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(139, 0, 0, 0.7);
  border-radius: 10px;

  pointer-events: none;
  z-index: 2;

  box-shadow: inset 0 0 25px rgba(0,0,0,0.6);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .letter-card-quote.portrait-mode {
    aspect-ratio: 2 / 3; 
  }

  .section-inner {
    padding: 0 24px;
  }
}

@media (max-width: 1100px) {
  .letters-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

.corr-seal img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.corr-item .ct {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 3px;
}

.corr-item .cd {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 4px;
}

.corr-item .cp {
  font-size: 13px;
  color: var(--color-text-primary);
  line-height: 1.6;
  font-style: italic;
}

.sig-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 6px;
  filter: drop-shadow(0 0 3px rgba(223,167,50,0.7));
}
.royal-blog-panel {
  max-width: 920px;
  margin: 40px auto 60px;
  padding: 34px 36px;

  background: rgba(0, 0, 64, 0.9);
  border: 1px solid rgba(223, 167, 50, 0.25);
  border-radius: 10px;

  box-shadow: 0 18px 60px rgba(0,0,0,0.55);

  color: #f5f0e8;

  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.85;

  backdrop-filter: blur(6px);

  text-align: left; /* default text alignment */
}

/* paragraphs */
.royal-blog-panel p {
  margin-bottom: 18px;
}

/* gold highlight */
.royal-blog-panel strong {
  color: #dfa732;
}

/* optional title inside panel */
.royal-blog-panel h2,
.royal-blog-panel h3 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: 'Cinzel Decorative', serif;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

/* decorative top line */
.royal-blog-panel::before {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: #dfa732;
  margin: 0 auto 20px auto;
  opacity: 0.6;
}

/* mobile */
@media (max-width: 768px) {
  .royal-blog-panel {
    padding: 22px 18px;
    margin: 20px auto 40px;
    font-size: 1rem;
    line-height: 1.7;
  }
}
.hero-video video {
  border-radius: 8px; /* Çok hafif bir yumuşatma */
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
::selection {
  background-color: #dfa732; 
  color: #0f172a; 
}


::-moz-selection {
  background-color: #dfa732;
  color: #0f172a;
}
/* ================= RESPONSIVE / MOBILE ================= */
@media (max-width: 768px) {
  /* Reduce outer section padding to allow wider cards on mobile */
  section[style*="padding:40px 20px"], 
  section[style*="padding: 40px 20px"] {
    padding: 20px 10px !important;
  }

  /* Optimize card internal padding for mobile screen width */
  .letter-card {
    padding: 28px 20px !important;
    margin-bottom: 20px;
  }

  /* Adjust spacing below the image container */
  .letter-card-quote {
    margin-bottom: 16px;
  }

  /* Set image height for mobile viewports */
  .letter-card-quote img {
    height: 220px;
  }

  /* Improve text readability on mobile devices */
  .letter-card-text {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    text-align-last: left;
  }

  .letter-card-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
}
/* ================= MOBILE CONTAINER EXPANSION ================= */
@media (max-width: 768px) {
  /* Reduce side margins and padding on the main container for mobile */
  main.u-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    width: 100% !important;
  }

  /* Expand the outer section and main wrapper */
  .infinity-grid-section {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  /* Make the main blog panel fill the mobile screen width */
  .royal-blog-panel {
    padding: 20px 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* Adjust guestbook card inner padding so content has room to breathe */
  .royal-guestbook {
    padding: 20px 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 8px !important;
  }
}

