
.container {
    max-width: 600px; 
    width: 100%;
    margin: 20px auto;
}

.responsive-image {
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto;
    
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

a:hover .responsive-image {
    /* SCALING EFFECT: Makes the image slightly larger */
    transform: scale(1.05); 
    /* Optional: Deepens the shadow to emphasize the lift */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); 
    /* Optional: Change border color */
    border-color: #007bff; 
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    background-color: white;
    padding: 10px 20px;
}

.logo img {
    height: 60px; /* Adjust height as needed */
    width: auto;
    vertical-align: middle;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    
    /* Makes the list items line up horizontally */
    display: flex;
    gap: 15px; /* Reduced gap since the icons might be smaller */
}

.main-nav a img {
    height: 60px; /* Adjust the icon size */
    width: 60px;
    
    /* Optional: Improves display consistency by removing border artifacts */
    border: none;
    vertical-align: middle; 
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.grid-link-card {
  text-decoration: none; 
  color: inherit; 
  
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
  display: flex; 
  flex-direction: column; 
  
  transition: all 0.3s ease; 
}

.grid-link-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
  border-color: #007bff;
}

.grid-link-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.card-caption {
  padding: 15px;
  background-color: #f9f9f9;
  flex-grow: 1; 
}

.card-caption p {
  color: #555;
  font-size: 1.2em;
  margin: 5px 0 0;
}

.card-caption strong {
  display: block;
  font-size: 1.1em;
  margin-bottom: 5px;
  color: #333;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif; /* Use a classic, readable font */
  background-color: #f8f8f8; /* Light background */
  padding: 20px;
}

.museum-object {
  display: flex; /* Enables flexbox layout for side-by-side content */
  max-width: 1200px;
  margin: 0 auto; /* Center the container */
  background-color: #ffffff; /* White card background */
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  overflow: hidden; /* Important for border-radius on children */
}

.object-image {
  flex: 1; /* Takes up 1 part of the space */
  max-width: 50%; /* Image section won't take up more than half */
  min-width: 300px; /* Minimum width to prevent crushing on small screens */
  overflow: hidden;
}

.object-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area without distortion */
  display: block;
}

/* --- Details Styling --- */
.object-details {
  flex: 1.5; /* Takes up 1.5 parts of the space (more room for text) */
  padding: 40px;
  color: #333;
}

.object-title {
  font-size: 1.5em;
  color: #005662; /* Museum-like color (e.g., deep teal) */
  margin-top: 0;
  margin-bottom: 5px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.object-accession-number {
  font-style: italic;
  color: #666;
  margin-bottom: 30px;
}

/* --- Sub-Sections in Details --- */
.details-section {
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 3px solid #005662; /* Highlight border for sections */
}

.details-section h3 {
  font-size: 1.1em;
  color: #005662;
  margin-top: 0;
  margin-bottom: 8px;
}

.details-section ul {
  list-style: none; /* Remove default bullets */
  padding-left: 0;
}

.details-section li {
  margin-bottom: 5px;
}

/* --- Link/Button Style --- */
.details-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #005662;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.details-link:hover {
  background-color: #00798a;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .museum-object {
    flex-direction: column; /* Stacks the image and details vertically */
    max-width: 90%;
  }

  .object-image {
    max-width: 100%; /* Image takes full width */
    min-width: unset;
    height: 300px; /* Set a fixed height for mobile view */
  }

  .object-details {
    padding: 20px;
  }
}
