.potw-week-listing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.potw-week-listing a {
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.potw-week-listing a:first-child {
    margin-right: 5px;
    border: none;
    font-weight: bold;
}

.potw-week-listing .separator {
    margin: 0 10px;
}

.potw-week-listing a.current-week {
    font-weight: bold;
    background-color: #f0f0f0;
}

@media (max-width: 768px) {
    .potw-week-listing {
        justify-content: flex-start;
    }
}

.potw-caption {
    margin-top: 20px;
    margin-bottom: 10px;
}

.potw-author {
    font-style: italic;
}

.potw-image-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.potw-image-container img {
    max-width: 100%;
    max-height: 80vh; /* Limit height to 80% of viewport height */
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 1200px) {
    .potw-image-container img {
        max-height: 75vh;
    }
}

@media (max-width: 768px) {
    .potw-image-container img {
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .potw-image-container img {
        max-height: 65vh;
    }
}

/* Handle landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .potw-image-container img {
        max-height: 60vh;
    }
}

.elementor-widget-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

#primary.content-area {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.site-main {
    width: 100%;
}
