body, p, div {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
}
body {
    color: #ffffff;
    background-color: #1D1D1D;
}
a {
    color: #99FF01;
    text-decoration: none;
}
a img {
    vertical-align: middle;
}
table.wrapper {
    width: 100% !important;
    table-layout: fixed;
}
img {
    border: none;
    outline: none;
    text-decoration: none;
    -ms-interpolation-mode: bicubic;
}

/* Columns from old newsletter (for reference if needed) */
.column.of-2 { width: 50%; }
.column.of-3 { width: 33.333%; }
.column.of-4 { width: 25%; }

/* Responsive */
@media screen and (max-width:480px) {
    .preheader .rightColumnContent,
    .footer .rightColumnContent {
        text-align: left !important;
    }
    .preheader .rightColumnContent div,
    .footer .rightColumnContent div {
        text-align: left !important;
    }
    .wrapper-mobile {
        width: 100% !important;
        table-layout: fixed;
    }
    img.max-width {
        height: auto !important;
        max-width: 100% !important;
    }
    a.bulletproof-button {
        display: block !important;
        width: auto !important;
        font-size: 80% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .columns, .column {
        width: 100% !important;
        display: block !important;
    }
}

/* Headings & Body */
.main-title-container {
    color: #a6a6a6;
    padding: 20px;
}
.main-title {
    font-size: 48px;
    font-weight: bold;
    color: #a6a6a6;
    margin: 0;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}
.subtitle {
    font-size: 24px;
    color: #a6a6a6;
    margin: 5px 0 0 0;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* Top bar with Sogni / Sync at left and "all editions" on right */
.top-bar {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    background-color: #000000;
}
.top-bar-left {
    display: flex;
    align-items: center;
    color: #a6a6a6;
    font-size: 16px;
}
.top-bar-left img {
    height: calc(16px * 1.2);
    width: auto;
    margin-right: 5px;
}
.top-bar-right {
    color: #a6a6a6;
    font-size: 16px;
}

/* Archive Header */
.archive-header {
    text-align: left;
    padding-left: 20px;
}
.archive-title {
    font-size: 38px;
    font-weight: 700;
    color: #a6a6a6;
    margin: 20px 0 0 0;
    font-family: 'Inter', sans-serif;
}
.archive-subtitle {
    font-size: 18px;
    color: #a6a6a6;
    margin: 5px 0 20px 0;
    font-family: 'Inter', sans-serif;
}

/* Square grid for volumes */
.squares-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}
.square {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* helps keep the element square in modern browsers */
    overflow: hidden;
    background-color: #2A2A2A;
    border-radius: 6px;
}
.square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.square:hover .overlay {
    opacity: 0;
}

/* Button (similar to newsletter style) */
.button-link {
    background-color: #000000;
    border: 1px solid #99FF01;
    border-radius: 9px;
    color: #ffffff;
    display: inline-block;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0px;
    line-height: normal;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

/* Footer (similar to newsletter style) */
.footer-legal {
    font-family: 'Inter', sans-serif;
    text-align: center;
    padding: 10px;
}
.footer-legal span {
    color: #a6a6a6;
    font-size: 10px;
}
.footer-legal a {
    color: #ffffff;
    font-size: 10px;
    text-decoration: none;
}

/* Social icons row */
.social-media-container {
    text-align: center;
    padding: 10px 0 20px;
}
.social-icon {
    margin: 0 10px;
    display: inline-block;
}
.social-icon img {
    width:24px;
    height:24px;
}

/* Subscribe block (replaces old unsubscribe) */
.subscribe-block {
    color: #ffffff;
    font-size: 12px;
    line-height: 22px;
    padding: 16px 16px 0px 16px;
    text-align: center;
    font-family: Arial, sans-serif;
}
.subscribe-block p {
    margin: 0;
}
.subscribe-block a {
    color: #bebdbd;
    text-decoration: underline;
    font-size: 12px;
}

/* Adjust for small screens */
@media (max-width: 768px) {
    .squares-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .archive-title {
        font-size: 32px;
    }
}
@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .top-bar-right {
        margin-top: 5px;
    }
    .archive-title {
        font-size: 28px;
    }
    .archive-subtitle {
        font-size: 16px;
    }
    .squares-container {
        grid-template-columns: 1fr;
    }
}
.coming-soon {
    background-color: #CCCCC;
}

.square img, .square .overlay {
  cursor: pointer;
}
