/* Basic Reset & Body Styling (Optional, but good practice) */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* A classic, clean sans-serif */
    margin: 0;
    padding: 0; /* Remove body padding as Bootstrap container adds it */
    background-color: #f0f0f0; /* Keeping light grey from your existing body */
    color: #333; /* Keeping dark grey from your existing body */
}

 .museum-cards-container {
  background-color: white;
  padding: 20px;



 }
/* --- Individual Museum Card --- */
.museum-card {
    background-color: #ffffff; /* Keeping crisp white background for clarity */
    border: 3px solid #807146; /* Strong, defined border using Primary Accent */
    border-radius: 8px; /* Slightly rounded corners for softness */
    overflow: hidden; /* Ensures images don't spill out */
    box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 0.2); /* Bold, offset shadow for depth */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%; /* Ensure cards in a row have equal height */
    hyphens: auto;
    word-break: break-word;
}

.museum-card:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 12px 12px 0px 0px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* --- Image Section --- */
.card-images {
    position: relative;
    width: 100%;
    height: 250px; /* Fixed height for image consistency */
    overflow: hidden;
    background-color: #e0e0e0; /* Keeping light grey for background when using contain, it's neutral */
}

.card-images img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures entire image is visible, no cropping */
    display: block;
    transition: opacity 0.5s ease-in-out; /* For image cycling */
}

.card-images img.hidden {
    display: none; /* Hide extra images */
}

/* --- Image Navigation Dots --- */
.image-nav {
    position: absolute;
    bottom: 15px; /* Position at the bottom */
    left: 50%;
    transform: translateX(-50%);
    display: flex; /* Use flexbox for horizontal alignment of dots */
    gap: 8px; /* Space between dots */
    z-index: 10; /* Ensure dots are above images */
    pointer-events: none; /* Allows clicks to pass through this container to the dots */
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease-in-out;
}

/* Show dots on hover over the card-images container */
.card-images:hover .image-nav {
    opacity: 1; /* Fade in on hover */
}

.image-dot {
    width: 10px; /* Size of the square dot */
    height: 10px;
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
    border: 1px solid rgba(128, 113, 70, 0.4); /* Subtle border using Primary Accent with transparency */
    border-radius: 2px; /* Slightly rounded corners for a softer square */
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    pointer-events: auto; /* Re-enable clicks on dots themselves */
}

.image-dot.active {
    background-color: #D7AC44; /* Active dot is golden yellow (Secondary Accent) */
    border-color: #D7AC44;
}

/* --- Magnifier Icon (Pure CSS - Monotone Style) --- */
.magnifier-icon {
    position: absolute;
    top: 20px; /* Adjust position slightly */
    right: 25px; /* Adjust position slightly */
    width: 20px; /* Size of the lens */
    height: 20px; /* Size of the lens */
    border: 3px solid #D7AC44; /* Lens border using Secondary Accent */
    border-radius: 50%; /* Make it circular */
    cursor: pointer;
    z-index: 15;
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease-in-out, border-color 0.3s ease, transform 0.3s ease;
    display: block; /* Ensure block model for pseudo-elements */
}

/* Add the handle for the magnifying glass */
.magnifier-icon::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Position the handle below the lens */
    right: -8px; /* Position the handle to the right of the lens */
    width: 10px; /* Handle width */
    height: 3px; /* Handle thickness */
    background: #D7AC44; /* Handle color using Secondary Accent */
    transform: rotate(45deg); /* Angle the handle */
    transform-origin: bottom right; /* Rotate from the corner */
    border-radius: 2px;
}

/* Show magnifier on hover over the card-images container */
.card-images:hover .magnifier-icon {
    opacity: 1; /* Fade in on hover */
}

/* Hover effects for the magnifier */
.magnifier-icon:hover {
    border-color: #56513C; /* Dark accent on hover for lens */
    transform: scale(1.1); /* Subtle zoom effect */
}

.magnifier-icon:hover::after {
    background: #56513C; /* Dark accent on hover for handle */
}

/* --- Full Screen Overlay --- */
.fullscreen-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position to cover the entire viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark, semi-transparent background */
    z-index: 1000; /* High z-index to be on top of everything */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.fullscreen-overlay.active {
    display: flex; /* Show when active */
}

.fullscreen-img {
    max-width: 90%; /* Max width of the image within the overlay */
    max-height: 90%; /* Max height of the image within the overlay */
    object-fit: contain; /* Ensures the whole image is visible */
    background-color: #fff; /* White background behind the image */
    padding: 10px; /* Padding around the image */
    border-radius: 8px;
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001; /* Above the image */
    transition: color 0.3s ease;
}

.close-overlay:hover {
    color: #D7AC44; /* Golden yellow on hover (Secondary Accent) */
}

/* --- Fullscreen Image Navigation Dots --- */
.fullscreen-image-nav {
    position: absolute;
    bottom: 30px; /* Position higher than the close button for clarity */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px; /* Slightly more space for fullscreen dots */
    z-index: 1002; /* Above image and close button */
    pointer-events: none; /* Allow clicks to pass through its container */
}

/* Ensure fullscreen dots are visible and interactive */
.fullscreen-image-nav .image-dot {
    background-color: rgba(255, 255, 255, 0.8); /* More opaque white for visibility */
    border-color: rgba(128, 113, 70, 0.6); /* Slightly more defined border */
    pointer-events: auto; /* Enable clicks */
}

.fullscreen-image-nav .image-dot.active {
    background-color: #D7AC44; /* Still golden yellow when active */
    border-color: #D7AC44;
}

.fullscreen-image-nav .image-dot:hover {
    background-color: #56513C; /* Darker brown/green on hover */
    border-color: #56513C;
}

.image-dot:hover {
    background-color: #56513C; /* Darker brown/green on hover */
    border-color: #56513C;
}

/* --- Card Details Section --- */
.card-details {
    padding: 25px;
    background-color: #ffffff; /* Keep details crisp white */
    flex-grow: 1; /* Allows details section to expand */
}

.item-title {
    font-family: 'Georgia', serif; /* A classic serif for titles */
    font-size: 1.8em;
    color: #616F3E; /* Using your specific h1 color for titles */
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase; /* Strong, bold text */
    letter-spacing: 1px;
}

.small-description {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #555; /* Keeping a medium grey for description text */
}

.item-properties {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
}

.item-properties li {
    font-size: 0.95em;
    margin-bottom: 8px;
    padding-left: 15px; /* Indent for clean alignment */
    position: relative;
    color: #444; /* Keeping a slightly darker grey for property text */
}

.item-properties li strong {
    color: #333; /* Keeping dark grey for strong text */
    min-width: 80px; /* Align property names */
    display: inline-block;
}

.item-properties li::before {
    content: '•'; /* Custom bullet point */
    color: #cc0000; /* Keeping the bold red for a distinct highlight */
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

/* --- Responsive Adjustments (Bootstrap handles most of this now) --- */
/* You can remove your original @media (max-width: 768px) block */
/* as Bootstrap's col-12, col-sm-6, col-md-4 classes will handle responsiveness */
/* naturally. */
/* The card-images height is fixed, but you can adjust it if needed for smaller screens */
@media (max-width: 575.98px) { /* Bootstrap's XS breakpoint */
    .card-images {
        height: 200px; /* Adjust height for extra small screens if desired */
    }
}

/* To ensure all cards in a row have the same height,
   Bootstrap's flexbox-based grid usually handles this.
   If you notice height discrepancies, you might need to add:
   .row { align-items: stretch; }
   or ensure your .museum-card has height: 100%; as added above.
*/