/* GLOBAL */
body {
  background-color: #D3D3D3; /* Light Gray */
  color: #003366;            /* Dark Blue */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  line-height: 1.6;
}

/* GLOBAL LINKS */
a {
  color: #003366;
  text-decoration: none;
  transition: 0.3s;
}

/* Image Links */
.img-link img {
  display: inline-flex
  border: none;
  width: auto;
  max-width: 30px;
  object-fit: contain;
}

/* -- HEADER FOOTER & NAVIGATION -- */
header {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #00008B;
  background-color: #D3D3D3;
}

#main-footer {
  border-top: 2px solid #00008B;
  padding: 40px 20px;
  margin-top: 50px;
  text-align: center;
}

.footer-content h3 {
  margin-bottom: 20px;
}

.main-nav ul {
	text-decoration: none; /* Redundant but ensures nav is clean */
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  color: #003366;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-links a {
  text-decoration: none;
  color: #003366;
  margin-left: 15px;
  font-size: 0.9rem;
  border: 1px solid #00008B;
  padding: 5px 10px;
  transition: 0.3s;
}

.social-links a:hover {
  background-color: #00008B;
  color: #003366;
}

/* -- GALLERY GRID -- */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

/* THE GRAY FRAME */
.gallery-item {
  flex: 0 1 300px;      /* Consistent width for every frame */
  height: 300px;        /* Consistent height for every frame */
  background-color: #e5e4e2; 
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* THUMBNAIL FITTING */
.thumb {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain; /* fit the thumbnail into the frame */
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover .thumb {
  transform: scale(1.05);
}

/* -- OVERLAY (Title on Hover) -- */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(173, 216, 230, 0.5); 
  display: flex;
  justify-content: center;
  align-items: flex-end; 
  padding-bottom: 15px;    
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay-text .title {
  color: #000000;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px; 
}

.overlay-text .year {
  display: none; 
}

/* -- LIGHTBOX -- */
.modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 50, 0.98); 
  z-index: 2000;
  overflow: hidden;
}

.modal-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

/* ART SECTION */
.modal-image-section {
  flex: 4; /* Takes up 80% width */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  padding: 20px;
}

.modal-content {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* SIDE INFO PANEL */
.modal-info-panel {
  flex: 1; /* Takes up 20% width */
  min-width: 200px; /* Minimum space for readability */
  max-width: 300px;
  background-color: #e5e4e2;
  color: #000000;
  padding: 80px 25px 40px 25px; 
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-left: 2px solid #00008B;
}

#modal-title {
  margin-top: 0;
  border-bottom: 2px solid #00008B;
  padding-bottom: 10px;
  font-size: 1.5rem;
  text-transform: uppercase;
}

#modal-description {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* UI Adjustments */
.close {
  position: fixed; /* locked to the screen */
  top: 15px;
  right: 20px;
  color: #2a52be;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 6000; /* Higher than nav-btn (5000) */
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close:hover {
  color: #ff0000; /* X turns red on hover as a clear signal */
  transform: scale(1.1);
}

.nav-btn {
  position: fixed;
  top: 50%; /* Start at the middle */
  transform: translateY(-50%); /* Perfectly center vertically */
  height: 200px; /* Only 200px tall, instead of full screen */
  width: 80px; 
  background: rgba(0, 0, 0, 0.1); /* Slight hint of a button */
  border: none;
  color: #D3D3D3; 
  font-size: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  transition: all 0.3s ease;
  
  text-shadow: 
    -1px -1px 0 #ffffff,  
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
}

/* Position them on the edges */
.prev { left: 0; border-radius: 0 10px 10px 0; }
.next { right: 0; border-radius: 10px 0 0 10px; }

.nav-btn:hover {
  background: rgba(0, 0, 50, 0.4);
  width: 100px; /* Expands slightly on hover for easier clicking */
}

.prev {
  left: 0;
}

.next {
  right: 0; /* pins it to the right edge of the screen */
}

/* THUMBNAIL FADE-IN */
.fade-in-ready {
  opacity: 0; /* Start invisible */
  animation: thumbnailFade 0.6s ease-out forwards;
}

@keyframes thumbnailFade {
  from { 
    opacity: 0; 
    transform: translateY(10px); /* Slight lift for a "rising" effect */
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

/* MAIN IMAGE FADE IN */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Apply to the entire modal background */
.modal {
  animation: fadeIn 0.4s ease-out;
}

/* Apply to the image so it fades in */
.modal-content {
  animation: fadeIn 0.5s ease-in-out;
}




/* -- ABOUT PAGE STYLES -- */
.about-container {
    max-width: 800px; /* Limits width for readability */
    margin: 60px auto; /* Centers the block with top/bottom spacing */
    padding: 0 20px;
    min-height: 60vh; /* Ensures footer stays down on short pages */
}

.about-content h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid #003366;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.about-links {
    margin-top: 50px;
    background: #e5e4e2;
    padding: 30px;
    border-left: 4px solid #003366;
}

.about-links h3 {
    margin-top: 0;
    text-transform: uppercase;
}

.about-links ul {
    list-style: none;
    padding: 0;
}

/* Target the whole line (the label) */
.about-links li a {
    margin-bottom: 25px;
    font-weight: bold; /* This keeps "Email:", "Instagram:", etc. bold */
    color: #003366;
}

/* Target just the link inside the line */
.about-links li {
    margin-bottom: 25px;
	font-weight: normal; /* This makes the actual link text thinner */
    margin-left: 5px;    /* Adds a tiny bit of breathing room after the colon */
}

.about-links a:hover {
    text-decoration: underline;
}


/* Container to push the Sold status to its own line */
.sold-container {
    margin-top: 20px; /* Space between description and icon */
    padding-top: 15px;
    border-top: 1px solid #ddd; /* line to separate text from status */
    display: flex;
    align-items: center;
}

.sold-icon {
    height: 22px;
    width: auto;
    margin-right: 8px;
}

.sold-container span {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
}



/* -- MOBILE RESPONSE -- */
@media (max-width: 800px) {
  /* Stack the layout */
  .modal-wrapper {
    flex-direction: column;
  }

  /* Image 70% of screen */
  .modal-image-section {
    flex: none;
    height: 70vh;
    width: 100%;
    padding: 10px;
  }

  /* Info bottom 30% of screen */
  .modal-info-panel {
    flex: none;
    height: 30vh;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 20px;
    border-left: none;
    border-top: 2px solid #003366;
  }

  /* Shrink UI Elements for mobile */
  .nav-btn {
    width: 50px;
    height: 100px;
    font-size: 30px;
  }

  .close {
    top: 10px;
    right: 15px;
    font-size: 40px;
  }

  #modal-title {
    font-size: 1.2rem;
  }

  #modal-description {
    font-size: 0.95rem;
  }
}
}