/* * { outline: 2px solid red;} */
* { 
  box-sizing: border-box; 
}

html, body { 
  margin: 0; 
  padding: 0; 
}

html {
  height: 100%; 
}

body {
  font-family: sans-serif;
  margin: 0;
  color: #333;
  display: flex;
  flex-direction: column; 
  min-height: 100vh;
}

:root {
  --header-height: 80px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  position: relative;          
  height: var(--header-height);
  display: flex;
  justify-content: end;
  align-items: center;
  overflow: hidden;
  padding: 20px;
  z-index: 1000;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;           
  z-index: 1001;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.menu li {
  margin: 0;
  padding: 0;
  display: inline;
  list-style: none;
}

.menu li a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  text-decoration: none;
  color: inherit;
}

.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.name {
  color: #545454;
  font-size: 30pt;
  font-weight: 100;
  margin-top: 18px;
  position: absolute;
  left: 25px;
  top: 1mm;
}
/* ========== MAIN CONTENT ========== */
main {
  flex-grow: 1;
}

.mainContent {
  padding-bottom: 50px;
}

.CINEMA {
  background-image: url("assets/background/hero.webp");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  z-index: 1; 
}

/* ========== PURE CSS MASONRY WITH CONSISTENT GAPS ========== */
.grid-wrapper {
  width: 90%; 
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

#gallery {
  width: 100%;
  margin: 0 auto;
}

.image-item {
  width: 33.333%; /* 4 columns on desktop */
  padding: 5px;
  box-sizing: border-box;
}

.image-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .image-item {
    width: 33.333%; /* 3 columns on tablets */
  }
}

@media (max-width: 820px) {
  .image-item {
    width: 100%; /* 2 columns on mobile */
  }
  .grid-wrapper {
    width: 95%;        
    padding: 0 10px;   
  }
}

@media (max-width: 480px) {
  .image-item {
    width: 100%; /* 1 column on small mobile */
  }
  .grid-wrapper {
    width: 100%;
    padding: 0 5px;
  }
}

/* ========== ALBUM NAVIGATION ========== */
.album-navigation { 
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.album-navigation a {
  padding: 10px 10px 0px 10px;
  font: inherit;
  text-decoration: none;
  font-size: 2rem;
  color: rgb(54, 54, 54);
}

.album-navigation a.active {
  font-weight: bold;
}

.album-sub-categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  margin-top: 7px;
  margin-bottom: 30px;
}

.album-sub-categories li {
  font-size: 1.25rem;
  text-decoration: none;
  color: rgb(54, 54, 54);
  list-style: none;
}

.album-sub-categories li.active {
  font-weight: bold;
}

/* ========== CONTACT ========== */
.gridContact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 2px;
  grid-row-gap: 0px;
}

.contact {
  margin-top: 100px;
}

.contactp {
  margin-top: 60px;
  font-size: 20px;
  padding: 40px;
  font-weight: 100;
}

.contactp h1 {
  font-weight: 150;
  font-size: 150%;
}

.contactp h2 {
  font-size: 120%;
  font-weight: 100;
}

.contactBG { 
  background-color: antiquewhite;
}

.contactLinks li {
  list-style: none;
  margin-left: -40px;
  text-decoration: none;
}

.contactLinks img {
  margin-bottom: -5px;
}

.emailLOL p {
  margin: 0;
  display: inline;
}
.emailLOL a {
  text-decoration: none;
  color: inherit;

}
.instaLOL a {
  text-decoration: none;
  color: inherit; 
}

.insta-icon {
  padding-right: 15px;
}

.headingC {
  display: flex;
  justify-content: center;
  margin-bottom: -125px;
  font-size: 65px;
  font-weight: 500;
}

#contact-form {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  padding: 40px;
  font-family: Arial, sans-serif;
}

#contact-form label {
  font-weight: bold;
}

#contact-form input,
#contact-form textarea {
  padding: 8px;
  font-size: 1em;
  border: 0px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

#contact-form button {
  background-color: white;
  border: 0mm solid black; 
  color: black;
  padding: 10px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 4px;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: 2px solid rgb(0, 119, 146);
}

#contact-form button:hover {
  background-color: gainsboro;
}

#form-result {
  display: flex;
  justify-content: center;
  font-size: 1.5rem;
  margin-top: 15px;
}

/* ========== ABOUT ME ========== */
.background {
  background-color: black;
}

.aboutme-section {
  color: antiquewhite;
  margin-top: 50px;
  display: flex;
  align-items: start;
  justify-items: center;
  flex-direction: row;
  margin-left: 50px;
}
.aboutme-text h1 {
  margin-top: 1px;
}


.aboutme-image {
  max-width: 400px;
}

/* ========== SHOP ========== */
.shopClass h1 {
  margin-top: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.shopClass p {
  display: flex;
  justify-content: center;
  margin-left: 10%;
  margin-right: 10%;
  font-size: 1.8rem;
  line-height: 150%;
}
/* Privacy  */
.privacy {
  margin: 50px 100px 50px 100px;
}
.privacy a {
  color: rgb(198, 198, 198);
  /* color: #545454; */
}
.privacyLink { 
    color: rgb(198, 198, 198);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: end;
    margin-right: 1%;
    font-size: 1.1rem;
}

/* ========== IMAGE VIEWER ========== */
.image-viewer-overlay {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-viewer-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  box-shadow: 0 0 24px #222;
  border-radius: 8px;
}

.image-viewer-close {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0,0,0,0.3);
  padding: 6px 12px;
  border-radius: 8px;
}

/* ========== FOOTER ========== */
footer {
  padding: 20px;
  /* display: grid; */
}

.socialmedia { 
  text-decoration: none;
  color: #697681;
  padding: 5px;
  cursor: pointer;
  gap: 10px;
}

.socialmedia li {
  display: inline;
  list-style: none;
}

ul.socialmedia {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-left: auto;
}

.menu_icons { 
  height: 25px;
  width: auto;
}

.mail-icon {
  transform: scale(0.7);
  transform-origin: bottom left;
  margin-top: -2px;
}

.copyright { 
  display: flex; 
  justify-content: center; 
  color: rgb(198, 198, 198); 
  font-weight: 50;
}

/* ========== UTILITY CLASSES ========== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a.nostyleLink,
a.nostyleLink:link,
a.nostyleLink:visited,
a.nostyleLink:hover,
a.nostyleLink:active {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

.menu a.active {
  font-weight: bold;
  text-decoration: underline;
  color: #007BFF;
}

/* ========== TABLET RESPONSIVE (max-width: 976px) ========== */
@media screen and (max-width: 976px) {
  .name {
    display: none;
  }
}

/* ========== MOBILE RESPONSIVE (max-width: 820px) ========== */
@media screen and (max-width: 820px) {
  .burger {
    display: block;
    position: absolute;
    margin-top: -19px;
    right: 5%;
    scale: 1.7;
    z-index: 9999;
    color:#545454
  }


  .name {
    display: inline;
  }
  
  .menu {
  display: flex;           
  flex-direction: column;
  position: fixed;
  align-items: flex-start;
  justify-content: flex-start; 
  top: 0;
  margin-top: 80px; 
  padding-left: 25px;
  right: 0;
  width: 100vw;
  height: 100vh;
  padding-top: 60px;
  z-index: 9998;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease-in-out;
  gap: 35px;
}
.whitebg {
  background: #fff;
}
.menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

  
  .menu a { 
    text-decoration: none;
    color: rgb(54, 54, 54);
    font-size: 35pt; 
    cursor: pointer;
    font-weight: 100;
  }
  

  
  .gridContact, 
  .contact {
    display: flex;
    flex-direction: column;
  }
  
  .contactp {
    margin: 0;
    margin-bottom: -160px;
  }
  
  #contact-form {
    top: 0;
  }
  
  .album-navigation { 
    display: flex;
    justify-content: center;
    padding: 0;
    gap: 1px;
    margin: 0;
    font-size: 0;
  }
  
  .album-navigation a { 
  font-size: 1.25rem;
  margin: 0 -5px;
  }
  
  .album-sub-categories {
    margin-top: 20px;
    gap: 5px;
    margin-left: -2%;
    display: flex;
    flex-direction: column;
  }
  
  .album-sub-categories li {
    font-size: 10pt;
    text-align: left;
  }
  .headingC {
    display: none;
  }
  .contactp { 
    margin-top: -140px;
  }
  .mobile-header {
    color: #545454;
    font-size: 30pt;
    font-weight: 100;
    margin-top: 18px;
    position: absolute;
    left: 25px;
    top: 1mm;
  }
}
.privacy
{
  margin: 5%;
}
.impressum h3 {
  font-size: 12pt;
}
/* .impressum {} */
/* ========== DESKTOP UI (min-width: 821px) ========== */
@media screen and (min-width: 821px) {
  .menu a { 
    text-decoration: none;
    color: rgb(54, 54, 54);
    font-size: 25pt; 
    cursor: pointer;
    font-weight: 100;
  }
  .mobile-header {
    display: none;
  }
}

#image-viewer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#image-viewer-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  position: relative;
  z-index: 10000;
}

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 2.5rem;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10001;
  border-radius: 8px;
  transition: all 0.3s ease;
  user-select: none;
  line-height: 1;
  display: flex;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: white;
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

#viewer-prev {
  left: 30px;
}

#viewer-next {
  right: 30px;
}

#viewer-close {
  position: fixed;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.3s;
  line-height: 1;
}

#viewer-close:hover {
  color: #f44336;
  transform: scale(1.1);
}
