/* =======================================
   UNOFFICIAL WORKS PAGE - WITH ARTWORK FRAMES
   ======================================= */

   html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #FFFAEC;
    font-family: myFirstFont;
    color: #333;
    display: flex;
    flex-direction: column; /* Allows main content to expand */
    overflow-x: hidden; /* Prevents horizontal scrollbar */
}
  
  .unofficial-gallery {
    padding-top: 5rem;
    padding-bottom: 5rem;
    min-height: 100%;
  }
  
  .container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }
  
  .gallery-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Grid layout */
  .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  /* Grid item with fixed-size frame */
  .grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
  }
  
  /* Artwork frame to encage artwork */
  .artwork-frame {
    width: 100%;             
    aspect-ratio: 1 / 1; /* makes all frames square; adjust as needed */
    background-color: #ffffff; /* Optional subtle white background */
    border: 1px solid #ddd;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* hide image overflow */
  }
  
  /* Image centered within frame */
  .artwork-frame img {
    max-width: 100%;
    max-height: 100%; /* Ensures images stay within frame */
    object-fit: contain; /* Prevent stretching */
  }
  
  /* Hover effect */
  .grid-item:hover .artwork-frame {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }


  /* =======================================
   INTRODUCTORY TEXT STYLE
   ======================================= */

.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem; /* margin for spacing below */
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
}

.gallery-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

  

  /* Responsive adjustment (2 columns on smaller screens) */
  @media (max-width: 768px) {
    .grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
  
    .artwork-frame {
      padding: 5px; /* reduce padding for mobile */
    }
  }
  