body {
    background-color: black;
}
/* 1. Define the fade-in animation */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 2. Apply the animation and link it to the scroll progress */
.scroll-reveal {
  opacity: 0; /* Initial state: hidden */
  animation: fade-in linear forwards;
  animation-duration: 1ms; /* Animation is driven by scroll, not time */
  animation-timeline: view(); /* Link animation to element's visibility in viewport */
  animation-range: entry 0% cover 30%; /* Start animation when the image's entry point hits the bottom of the viewport, and finish by the time it reaches the middle */
}

/* Optional: Ensure smooth animation only runs if user does not prefer reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    animation-duration: 0.5s; /* Add duration for users without motion preference */
  }
}

.nameheader {
  position: relative; /* Needed to position the dropdown content relative to its button */
  display: inline-block;
  float: left;
}

.namebtn {
  background-color: #000000;
  color: white;
  opacity: 0.8;
  padding: 10px;
  font-size: 35px;
  border: none;
  cursor: pointer;
}

.namebtn:hover {
    opacity: 0.7; /* Optional: add a hover effect */
}

.dropdown {
  position: relative; /* Needed to position the dropdown content relative to its button */
  display: inline-block;
  float: right; /* Aligns the dropdown to the right side of the container */
}
/* Dropdown button styling */
.dropbtn {
  background-color: #000000;
  color: white;
  opacity: 0.8;
  padding: 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none; /* Hide the content initially */
  position: absolute; /* Position it below the button */
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  right: 0; /* Aligns the right edge of the dropdown content with the right edge of its parent (.dropdown) */
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block; /* Make links take the full width */
  text-align: left; /* Align text to the left */
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show the dropdown menu on hover over the parent container */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: #d4ba36;
}
/* Ensure the html and body elements don't have default margins/padding that would cause issues */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Add padding to the main content to prevent overlap */
.content {
    margin-top: 70px; /* Should be height + padding of the overlay */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding/borders are included in element's total width/height */
}
h1 {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0; /* Remove default margins */
}
.parent-container {
    display: flex; /* Enables flexbox layout */
    justify-content: center; /* Centers child horizontally */
    align-items: center; /* Centers child vertically */
    border: 20px #ffffff; /* Optional: visualizes the container */
}

.centered-box {
    /* Styles for the text box itself */
    border: 2px solid rgb(255, 255, 255);
    padding: 10px;
    width: 100%; /* Optional: sets a width for the box */
    text-align: center; /* Centers text horizontally inside the box */
}

.image-container {
    /* Set the container position to relative so the absolute positioning of 
       the text is relative to the container, not the entire page. */
    position: relative;
    display: flex; /* Use flexbox to center the image */
    width: 600px; /* Set a fixed width for the container */
    margin: auto; /* Center the container horizontally */
    z-index: 10;
}

.image-container img {
   display: block;
   width: 600px; /* Ensures the image fills the container */ 
   object-fit: cover; /* Fit the image while maintaining aspect ratio and cropping excess */
}

.overlay-text {
    /* Position the text over the image */
    position: absolute;
    vertical-align: middle;
    background: rgba(170, 169, 169, 0.5); /* Semi-transparent background */
    color: rgb(0, 0, 0);
    inset: 0; /* Shorthand for top: 0; right: 0; bottom: 0; left: 0; */
    text-align: center; /* Center text horizontally */
    display: flex; /* Use flexbox to center text vertically */
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
    width: 600px; /* Optional: set a width for the text box */
    margin: inherit;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-container:hover .overlay-text {
    opacity: 1;
}
.social-img-btn img {
  position: relative;
  display: inline-block;
  float: right; /* Aligns the dropdown to the right side of the container */ 
  width: 58px; /* Adjust size as needed */
  height: 58px;
  transition: opacity 0.3s;
  background-color: #000000;
  padding: 21px;
  opacity: 0.8;
  cursor: pointer;
  z-index: 1;
}

.social-img-btn img:hover {
    opacity: 0.5; /* Optional: add a hover effect */
}
.clickableimage-container {
    /* Set the container position to relative so the absolute positioning of 
       the text is relative to the container, not the entire page. */
    position: relative;
    display: flex; /* Use flexbox to center the image */
    width: 200px; /* Set a fixed width for the container */
    margin: auto; /* Center the container horizontally */
    z-index: 10;
}
.clickableImage {
    /* Smooth transition for the hover effect */
    z-index: 10;
    transition: transform 0.3s ease; 
    /* Remove default image border if any */
    border: none; 
}

.clickableImage:hover {
    /* Zooms the image by 1.1 times on hover */
    transform: scale(1.1); 
}

/* Optional: remove the default underline from the anchor tag */
#imageLink {
    text-decoration: none;
    z-index: 10;
}
footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  margin-top: 100px; 
}
.top-bar {
    position: fixed; /* Positions the bar relative to the viewport */
    top: 0;          /* Aligns the bar to the very top of the screen */
    width: 100%;     /* Ensures the bar spans the full width */
    z-index: 1000;   /* Ensures the bar stays on top of other elements */
}
.img_gallery {
  width: 80%;
  margin: 100px auto 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 30px;
}

.img_gallery img {
  width: 100%;
  cursor: pointer;
  transition: 1s ease;
}

.img_gallery img:hover {
transform: scale(1.1);
box-shadow: 0 32px 75px rgba(1, 1, 1, 0.2);
}

.lightbox {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 5%; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9); 
    text-align: center;
}
.lightbox-content {
    max-width: 80vw;
    float:left;
    max-height: auto;
    padding-left: 5%;
    object-fit: scale-down;
}
.close-btn {
    position: absolute;
    top: 10%;
    right: 5%;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}
/* Navigation buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.flipbookcon {
  display: grid;
  place-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.flipbook {
    width: 1000px;
    Height: 700px;
}
.flipbook .page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid;
  background: black;
}
.page img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: auto;
}


.gallery {
  background: black;
}

.gallery-cell {
  width: 80vw;
  height: 600px;
  margin-right: 5px;
  margin-left: 5px;
  object-fit: cover;
  background: black;
  object-position: center top;
  display: inline-block;
  overflow: clip;
}
.aboutmain {
  text-align: center;
 justify-content: center;
 vertical-align: middle;
 align-items: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  width: 100vw;
  margin: auto;
}
.artlink {
  cursor: pointer;
  width: 100vw;
  height: 600px;
  object-fit: cover;
  position: relative;
  display: inline-block; /* Use flexbox to center the image */
  z-index: 10;
}
.artlink img {
display: inline-block;
 object-fit: cover; /* Fit the image while maintaining aspect ratio and cropping excess */
 height: 600px;
 object-position: center bottom;
}
.artlink:hover .link-overlay{
    opacity: 0.7; /* Optional: add a hover effect */
}
.link-overlay {
    /* Position the text over the image */
    position: absolute;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: rgb(255, 255, 255);
    inset: 0; /* Shorthand for top: 0; right: 0; bottom: 0; left: 0; */
    text-align: center; /* Center text horizontally */
    display: flex; /* Use flexbox to center text vertically */
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
    width: 100vw; /* Optional: set a width for the text box */
    margin: auto;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: xx-large;
}
