:root {
    --ink: #171716;
    --paper: #f8f7f2;
    --white: #fff;
    --muted: #79766e;
    --line: #e4e1d8;
    --gold: #b38b5f;
    --green: #287553;
    --red: #ae4941;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.eyebrow {
    margin: 0;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #88857c;
    font-weight: 700;
}

.wordmark {
    font-family: var(--serif);
    font-size: 21px;
    letter-spacing: -0.03em;
}

.public-header {
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4.5vw;
    background: rgba(250, 249, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.public-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.search-toggle {
    border: 0;
    background: none;
    font-size: 21px;
}

.login-button {
    border: 1px solid var(--ink);
    padding: 10px 17px;
}

.public-hero {
    text-align: center;
    padding: 108px 20px 75px;
}

.public-hero h1 {
    font-family: var(--serif);
    font-size: clamp(49px, 7vw, 88px);
    font-weight: 400;
    letter-spacing: -0.055em;
    margin: 21px 0 0;
}

.public-hero em {
    font-weight: 400;
}

.hero-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin: 23px 0;
}

.contact-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}

.contact-line a {
    font-size: 11px;
    color: var(--muted);
}

.contact-line i {
    width: 22px;
    height: 1px;
    background: var(--line);
}

.hero-rule {
    display: block;
    width: 1px;
    height: 62px;
    background: var(--line);
    margin: 45px auto 0;
}

.events-section,
.gallery-section {
    max-width: 1520px;
    margin: auto;
    padding: 0 4.5vw 90px;
}

.section-title,
.gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--line);
}

.section-title h2,
.gallery-heading h2,
.panel-head h2 {
    font-family: var(--serif);
    font-size: 29px;
    font-weight: 400;
    margin: 7px 0 0;
}

.event-search {
    display: flex;
}

.event-search input,
.table-toolbar input {
    height: 39px;
    border: 1px solid var(--line);
    background: white;
    padding: 0 13px;
    outline: 0;
}

.event-search button,
.table-toolbar form button {
    height: 39px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: white;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.event-card {
    position: relative;
    grid-column: span 4;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #ddd;
}

.event-card.card-1,
.event-card.card-4 {
    grid-column: span 6;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s;
}

.event-card:hover img {
    transform: scale(1.035);
}

.event-shade {
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.67));
}

.event-caption {
    position: absolute;
    left: 23px;
    bottom: 22px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.event-caption strong {
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 400;
}

.event-caption small {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.78;
}

.open-mark {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.94);
    opacity: 0;
    transition: 0.25s;
}

.event-card:hover .open-mark {
    opacity: 1;
}

.public-footer {
    display: flex;
    justify-content: space-between;
    padding: 34px 4.5vw;
    border-top: 1px solid var(--line);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.empty-state {
    text-align: center;
    padding: 65px;
    border: 1px dashed var(--line);
}

.empty-state h3 {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
    margin: 0;
}

.empty-state p {
    font-size: 11px;
    color: var(--muted);
}

.event-hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 610px;
}

.event-cover {
    background: #e8e5de;
    padding: 3vw 0 3vw 4vw;
}

.event-cover img {
    width: 100%;
    height: 100%;
    max-height: 650px;
    object-fit: cover;
}

.event-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8vw;
}

.event-intro h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(45px, 5vw, 75px);
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin: 18px 0;
}

.event-intro > p:not(.eyebrow) {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.event-intro a {
    margin-top: 38px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.gallery-section {
    padding-top: 75px;
}

.share-event {
    border: 1px solid var(--ink);
    background: none;
    padding: 10px 14px;
    font-size: 9px;
    text-transform: uppercase;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.photo-grid figure {
    margin: 0;
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #ddd;
}

.photo-grid figure.wide {
    grid-column: span 2;
    aspect-ratio: 8/5;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.photo-grid figure:hover img {
    transform: scale(1.02);
}

.photo-grid figcaption {
    position: absolute;
    right: 13px;
    bottom: 13px;
    display: flex;
    gap: 7px;
    opacity: 0;
    transition: 0.25s;
}

.photo-grid figure:hover figcaption {
    opacity: 1;
}

.photo-grid button,
.photo-grid figcaption a {
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 11px;
    font-size: 8px;
    text-transform: uppercase;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    position: relative;
}

.back-link {
    position: absolute;
    top: 25px;
    left: 30px;
    color: white;
    font-size: 9px;
    text-transform: uppercase;
    z-index: 2;
}

.login-visual {
    padding: 55px;
    color: white;
    background:
        linear-gradient(150deg, rgba(10, 10, 9, 0.25), rgba(10, 10, 9, 0.82)),
        url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1400&q=88")
            center/cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wordmark.light {
    color: white;
}

.login-visual h2 {
    font-family: var(--serif);
    font-size: 48px;
    line-height: 1.03;
    font-weight: 400;
    margin: 0;
}

.login-visual p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 45px;
}

.login-card {
    width: min(410px, 100%);
}

.login-card h1,
.setup-card h1 {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 400;
    margin: 13px 0 8px;
}

.login-card > p:not(.eyebrow),
.setup-card > p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 30px;
}

.login-card label,
.setup-card label,
.event-fields label,
.password-form label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin: 16px 0;
}

.login-card input,
.setup-card input,
.event-fields input,
.event-fields select,
.password-form input {
    display: block;
    width: 100%;
    height: 47px;
    border: 1px solid var(--line);
    background: white;
    margin-top: 8px;
    padding: 0 13px;
    outline: 0;
}

.btn {
    min-height: 43px;
    padding: 0 17px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 700;
}

.btn.primary {
    background: var(--ink);
    color: white;
}

.btn.secondary {
    background: white;
    border: 1px solid var(--line);
}

.btn.full {
    width: 100%;
}

.notice,
.flash {
    padding: 13px;
    background: #eeeae2;
    font-size: 11px;
    margin: 14px 0;
}

.notice.success,
.flash.success {
    background: #e5f2ea;
    color: var(--green);
}

.notice.error,
.flash.error {
    background: #f7e5e3;
    color: var(--red);
}

.setup-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.setup-card {
    background: white;
    border: 1px solid var(--line);
    width: min(530px, 100%);
    padding: 35px;
}

.admin-body {
    background: #f3f2ee;
}

.admin-layout {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    background: #1a1a18;
    color: white;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.side-brand {
    font-family: var(--serif);
    font-size: 20px;
    padding: 0 12px 29px;
    border-bottom: 1px solid #353532;
}

.sidebar nav {
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar nav a,
.side-bottom > a {
    height: 43px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a2a29c;
    font-size: 12px;
}

.sidebar nav a.active,
.sidebar nav a:hover,
.side-bottom > a:hover {
    background: #2c2c29;
    color: white;
}

.side-bottom {
    margin-top: auto;
    border-top: 1px solid #353532;
    padding-top: 12px;
}

.user-chip {
    padding: 17px 8px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-chip > b {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d9c4a9;
    color: #332a21;
    display: grid;
    place-items: center;
}

.user-chip div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-chip strong {
    font-size: 10px;
}

.user-chip small {
    font-size: 8px;
    text-transform: uppercase;
    color: #8f8f89;
}

.admin-main {
    margin-left: 240px;
}

.admin-top {
    height: 106px;
    background: #f9f8f4;
    border-bottom: 1px solid #dedbd3;
    padding: 0 38px;
    display: flex;
    align-items: center;
}

.admin-top span {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.admin-top h1 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
    margin: 6px 0 0;
}

.menu-toggle,
.close-menu {
    display: none;
}

.admin-content {
    padding: 31px 38px 45px;
    max-width: 1500px;
    margin: auto;
}

.flash {
    margin: 18px 38px 0;
}

.overview-actions,
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.overview-actions p {
    font-size: 11px;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.stats-grid article {
    background: white;
    border: 1px solid var(--line);
    padding: 22px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.stats-grid small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.stats-grid strong {
    font-family: var(--serif);
    font-size: 37px;
    font-weight: 400;
    margin: auto 0 8px;
}

.stats-grid span {
    font-size: 8px;
    color: var(--muted);
}

.stats-grid .role-stat {
    font-size: 27px;
}

.panel {
    background: white;
    border: 1px solid var(--line);
}

.stats-grid + .panel {
    margin-top: 17px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 21px 23px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2 {
    font-size: 24px;
}

.panel-head > a {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.recent-list article {
    display: grid;
    grid-template-columns: 55px 1.5fr 1fr 0.7fr 30px;
    gap: 13px;
    align-items: center;
    padding: 11px 23px;
    border-top: 1px solid #eeeae3;
}

.recent-list img {
    width: 55px;
    height: 55px;
    object-fit: cover;
}

.recent-list article > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recent-list strong {
    font-family: var(--serif);
    font-weight: 400;
}

.recent-list small,
.recent-list article > span {
    font-size: 8px;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    width: max-content;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 8px;
    font-style: normal;
    text-transform: capitalize;
}

.badge.published {
    background: #e5f2ea;
    color: var(--green);
}

.badge.draft {
    background: #eee9e0;
    color: #826c52;
}

.table-toolbar form {
    display: flex;
}

.event-table {
    background: white;
    border: 1px solid var(--line);
    overflow: auto;
}

.table-row {
    min-width: 760px;
    display: grid;
    grid-template-columns: 2fr 1fr 0.7fr 0.7fr 120px;
    gap: 14px;
    align-items: center;
    padding: 12px 19px;
    border-top: 1px solid var(--line);
    font-size: 9px;
    color: #5f5c56;
}

.table-header {
    background: #f8f7f3;
    border: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-size: 8px;
}

.event-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.event-cell img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.event-cell div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-cell strong {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
}

.event-cell small {
    font-size: 8px;
}

.row-actions {
    display: flex;
    gap: 6px;
}

.row-actions a,
.row-actions button {
    border: 1px solid var(--line);
    background: white;
    padding: 8px;
    font-size: 8px;
}

.row-actions button {
    color: var(--red);
}

.row-actions form {
    margin: 0;
}

.upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.event-fields {
    padding: 10px 23px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.event-fields label:nth-child(3) {
    grid-column: span 2;
}

.dropzone {
    margin: 6px 23px 22px;
    border: 1px dashed #aaa69e;
    min-height: 200px;
    background: #faf9f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: 0.2s;
}

.dropzone.dragging {
    border-color: var(--gold);
    background: #f6f0e8;
}

.dropzone input {
    display: none;
}

.dropzone > b {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ede7de;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.dropzone strong {
    font-family: var(--serif);
    font-weight: 400;
    margin-top: 11px;
}

.dropzone p,
.dropzone small {
    font-size: 8px;
    color: var(--muted);
    margin: 7px 0 0;
}

.publish-event {
    width: calc(100% - 46px);
    margin: 0 23px 23px;
}

.publish-event:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.upload-queue {
    padding: 0 23px;
}

.upload-queue article {
    display: grid;
    grid-template-columns: 43px 1fr 65px;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

.upload-queue img {
    width: 43px;
    height: 43px;
    object-fit: cover;
}

.upload-queue article > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px;
}

.upload-queue strong {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-queue small,
.upload-queue em {
    font-size: 8px;
    color: var(--muted);
    font-style: normal;
}

.mini-progress {
    grid-column: span 2;
    height: 3px;
    background: #e8e4dc;
}

.mini-progress i {
    display: block;
    height: 100%;
    background: var(--green);
}

.file-state {
    text-align: right;
    font-size: 7px;
    text-transform: uppercase;
    color: var(--muted);
}

.file-state.success {
    color: var(--green);
}

.file-state.failed {
    color: var(--red);
}

.monitor-panel .panel-head > i {
    font-size: 8px;
    font-style: normal;
    text-transform: uppercase;
    background: #eeeae3;
    padding: 6px 9px;
    border-radius: 20px;
}

.progress-circle {
    --progress: 0deg;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    margin: 28px auto;
    background: conic-gradient(var(--gold) var(--progress), #eeeae3 0);
    display: grid;
    place-items: center;
    position: relative;
}

.progress-circle:before {
    content: "";
    position: absolute;
    inset: 8px;
    background: white;
    border-radius: 50%;
}

.progress-circle > div {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-circle strong {
    font-family: var(--serif);
    font-size: 28px;
}

.progress-circle small {
    font-size: 7px;
    text-transform: uppercase;
    color: var(--muted);
}

.monitor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.monitor-stats article {
    padding: 13px 9px;
    display: grid;
    grid-template-columns: 8px 1fr;
    align-items: center;
    border-right: 1px solid var(--line);
}

.monitor-stats article:last-child {
    border: 0;
}

.monitor-stats i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.success-dot {
    background: var(--green);
}

.pending-dot {
    background: #d6a34b;
}

.failed-dot {
    background: var(--red);
}

.monitor-stats strong {
    font-family: var(--serif);
    font-size: 17px;
}

.monitor-stats span {
    grid-column: 2;
    font-size: 7px;
    text-transform: uppercase;
    color: var(--muted);
}

.monitor-panel dl {
    padding: 15px 21px;
    margin: 0;
}

.monitor-panel dl div {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #eeeae4;
}

.monitor-panel dt,
.monitor-panel dd {
    font-size: 8px;
}

.monitor-panel dt {
    color: var(--muted);
}

.monitor-panel dd {
    margin: 0;
}

.upload-error {
    margin: 0 18px 18px;
    padding: 12px;
    background: #f7e5e3;
    color: var(--red);
    font-size: 9px;
}

.manage-form {
    overflow: hidden;
}

.photo-manager {
    padding: 10px 23px 25px;
}

.manager-title h3,
.password-form h3,
.security-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 20px;
    margin-bottom: 5px;
}

.manager-title p,
.password-form > p,
.security-card p {
    font-size: 9px;
    color: var(--muted);
}

.manage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 17px;
}

.manage-photo {
    border: 2px solid transparent;
    background: #f5f3ee;
}

.manage-photo.cover-selected {
    border-color: var(--gold);
}

.cover-choice {
    display: block;
    position: relative;
    aspect-ratio: 4/5;
}

.cover-choice input {
    position: absolute;
    opacity: 0;
}

.cover-choice img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-choice span {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--ink);
    color: white;
    padding: 6px 8px;
    font-size: 7px;
    text-transform: uppercase;
    opacity: 0;
}

.cover-selected .cover-choice span {
    opacity: 1;
}

.manage-photo > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px;
}

.visibility {
    font-size: 8px;
}

.delete-photo {
    border: 0;
    background: none;
    color: var(--red);
    font-size: 8px;
}

.form-actions {
    border-top: 1px solid var(--line);
    padding: 20px 23px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.team-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 18px;
    align-items: start;
}

.crew-profile {
    margin: 23px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.crew-profile > b {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e7ddcf;
    display: grid;
    place-items: center;
}

.crew-profile div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crew-profile strong {
    font-size: 11px;
}

.crew-profile small {
    font-size: 8px;
    color: var(--muted);
}

.crew-profile > i {
    margin-left: auto;
    border: 1px solid var(--line);
    font-style: normal;
    font-size: 8px;
    padding: 6px 9px;
}

.permission-box {
    margin: 0 23px 22px;
    background: #f5f3ee;
    padding: 16px;
}

.permission-box > strong {
    font-size: 9px;
    text-transform: uppercase;
}

.permission-box p {
    font-size: 9px;
    color: var(--green);
}

.permission-box p.muted {
    color: var(--muted);
}

.password-form {
    padding: 22px;
    border-top: 1px solid var(--line);
}

.password-form label {
    max-width: 480px;
}

.security-card {
    padding: 23px;
}

.security-card small {
    display: block;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 20px;
    font-size: 8px;
    color: var(--muted);
}

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .upload-layout,
    .team-layout {
        grid-template-columns: 1fr;
    }
    .event-card,
    .event-card.card-1,
    .event-card.card-4 {
        grid-column: span 6;
    }
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .manage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .public-header {
        padding: 0 20px;
    }
    .public-header nav a:not(.login-button) {
        display: none;
    }
    .public-hero {
        padding-top: 80px;
    }
    .events-section,
    .gallery-section {
        padding-left: 18px;
        padding-right: 18px;
    }
    .event-grid {
        gap: 10px;
    }
    .event-card,
    .event-card.card-1,
    .event-card.card-4 {
        grid-column: span 12;
        aspect-ratio: 4/4.7;
    }
    .event-hero {
        grid-template-columns: 1fr;
    }
    .event-cover {
        padding: 18px 18px 0;
    }
    .event-cover img {
        max-height: 490px;
    }
    .event-intro {
        padding: 55px 24px;
    }
    .photo-grid {
        gap: 8px;
    }
    .photo-grid figcaption {
        opacity: 1;
    }
    .login-page {
        grid-template-columns: 1fr;
    }
    .login-visual {
        min-height: 280px;
        padding: 65px 28px 28px;
    }
    .login-visual h2 {
        font-size: 35px;
    }
    .login-panel {
        padding: 45px 22px;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: 0.25s;
    }
    .sidebar.open {
        transform: none;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 40;
    }
    .sidebar.open + .sidebar-overlay {
        display: block;
    }
    .close-menu {
        display: block;
        position: absolute;
        right: 15px;
        top: 18px;
        border: 0;
        background: none;
        color: white;
        font-size: 23px;
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-top {
        height: 94px;
        padding: 0 18px;
    }
    .menu-toggle {
        display: block;
        border: 0;
        background: none;
        margin-right: 14px;
    }
    .admin-content {
        padding: 22px 15px 35px;
    }
    .flash {
        margin: 15px 15px 0;
    }
    .overview-actions p {
        display: none;
    }
    .recent-list article {
        grid-template-columns: 50px 1fr auto;
        padding: 10px 14px;
    }
    .recent-list article > span,
    .recent-list article > .badge {
        display: none;
    }
    .event-fields {
        grid-template-columns: 1fr;
    }
    .event-fields label:nth-child(3) {
        grid-column: auto;
    }
    .manage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 430px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .photo-grid {
        grid-template-columns: 1fr;
    }
    .photo-grid figure.wide {
        grid-column: span 1;
        aspect-ratio: 4/5;
    }
    .contact-line {
        flex-direction: column;
    }
    .contact-line i {
        display: none;
    }
    .section-title {
        align-items: flex-start;
        gap: 15px;
    }
    .event-search {
        display: none;
    }
}

/* Readability and revised event workflow */
body {
    font-size: 16px;
}

.eyebrow {
    font-size: 12px;
}

.wordmark {
    font-size: 27px;
}

.public-header {
    height: 82px;
}

.public-header nav {
    gap: 24px;
    font-size: 13px;
}

.login-button {
    padding: 12px 21px;
}

.contact-line a {
    font-size: 14px;
}

.section-title h2,
.gallery-heading h2,
.panel-head h2 {
    font-size: 34px;
}

.event-search input,
.table-toolbar input {
    height: 48px;
    font-size: 15px;
}

.event-search button,
.table-toolbar form button {
    height: 48px;
    padding: 0 20px;
    font-size: 12px;
}

.event-caption strong {
    font-size: 29px;
}

.event-caption small {
    font-size: 11px;
}

.public-footer {
    font-size: 12px;
}

.empty-state p {
    font-size: 14px;
}

.event-intro > p:not(.eyebrow) {
    font-size: 13px;
}

.event-intro a,
.share-event {
    font-size: 12px;
}

.photo-grid button,
.photo-grid figcaption a {
    font-size: 11px;
}

.back-link {
    font-size: 13px;
}

.login-visual h2 {
    font-size: 58px;
}

.login-visual p {
    font-size: 13px;
}

.login-card {
    width: min(480px, 100%);
}

.login-card h1,
.setup-card h1 {
    font-size: 48px;
}

.login-card > p:not(.eyebrow),
.setup-card > p {
    font-size: 16px;
}

.login-card label,
.setup-card label,
.event-fields label,
.password-form label,
.event-information label {
    font-size: 13px;
    line-height: 1.5;
}

.login-card input,
.setup-card input,
.event-fields input,
.event-fields select,
.password-form input,
.event-information input,
.event-information select {
    height: 55px;
    padding: 0 16px;
    font-size: 16px;
}

.btn {
    min-height: 50px;
    padding: 0 22px;
    font-size: 13px;
}

.notice,
.flash {
    padding: 16px;
    font-size: 14px;
}

.sidebar {
    width: 270px;
    padding: 32px 20px;
}

.side-brand {
    font-size: 27px;
}

.sidebar nav a,
.side-bottom > a {
    height: 51px;
    font-size: 15px;
}

.user-chip > b {
    width: 40px;
    height: 40px;
}

.user-chip strong {
    font-size: 13px;
}

.user-chip small {
    font-size: 11px;
}

.admin-main {
    margin-left: 270px;
}

.admin-top {
    height: 122px;
    padding: 0 46px;
}

.admin-top span {
    font-size: 11px;
}

.admin-top h1 {
    font-size: 38px;
}

.admin-content {
    padding: 38px 46px 55px;
}

.flash {
    margin: 20px 46px 0;
}

.overview-actions p {
    font-size: 15px;
}

.stats-grid {
    gap: 18px;
}

.stats-grid article {
    padding: 28px;
    min-height: 190px;
}

.stats-grid small {
    font-size: 12px;
}

.stats-grid strong {
    font-size: 48px;
}

.stats-grid span {
    font-size: 12px;
}

.stats-grid .role-stat {
    font-size: 34px;
}

.panel-head {
    padding: 27px 29px;
}

.panel-head h2 {
    font-size: 30px;
}

.panel-head > a {
    font-size: 12px;
}

.recent-list article {
    grid-template-columns: 68px 1.5fr 1fr 0.7fr 40px;
    padding: 15px 29px;
}

.recent-list img {
    width: 68px;
    height: 68px;
}

.recent-list strong {
    font-size: 18px;
}

.recent-list small,
.recent-list article > span {
    font-size: 12px;
}

.badge {
    padding: 7px 11px;
    font-size: 11px;
}

.table-row {
    min-width: 880px;
    grid-template-columns: 2fr 1fr 0.7fr 0.7fr 165px;
    padding: 16px 24px;
    font-size: 13px;
}

.table-header {
    font-size: 11px;
}

.event-cell img {
    width: 66px;
    height: 66px;
}

.event-cell strong {
    font-size: 19px;
}

.event-cell small {
    font-size: 11px;
}

.row-actions a,
.row-actions button {
    padding: 10px 12px;
    font-size: 11px;
}

.clickable-row:not(.table-header) {
    cursor: pointer;
    transition: background 0.18s;
}

.clickable-row:not(.table-header):hover,
.clickable-row:not(.table-header):focus {
    background: #faf8f2;
    outline: none;
}

.table-empty {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.table-empty strong {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
}

.table-empty span {
    font-size: 14px;
    color: var(--muted);
}

.create-event-page,
.manage-event-page {
    max-width: 1550px;
}

.create-event-grid,
.event-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 30px;
    padding: 32px;
}

.event-information,
.cover-upload-card {
    border: 1px solid var(--line);
    background: #fbfaf7;
    padding: 28px;
}

.event-information h3,
.cover-upload-card h3 {
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 400;
    margin: 0 0 8px;
}

.event-information > p,
.cover-upload-card > p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 23px;
}

.event-information label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 21px 0;
}

.event-information input,
.event-information select {
    display: block;
    width: 100%;
    margin-top: 9px;
    border: 1px solid var(--line);
    background: white;
    outline: 0;
}

.form-notice {
    margin: 25px 32px 0;
}

.cover-dropzone {
    display: block;
    position: relative;
    overflow: hidden;
    background: #eae7df;
    cursor: pointer;
    min-height: 440px;
}

.cover-dropzone input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cover-dropzone img {
    display: block;
    width: 100%;
    height: 440px;
    object-fit: cover;
    transition: 0.3s;
}

.cover-dropzone span {
    position: absolute;
    inset: auto 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(20, 20, 18, 0.9);
    color: white;
    padding: 15px;
}

.cover-dropzone span b {
    font-size: 14px;
}

.cover-dropzone span small {
    font-size: 12px;
    opacity: 0.75;
}

.cover-dropzone.compact,
.cover-dropzone.compact img {
    min-height: 340px;
    height: 340px;
}

.cover-dropzone:hover img {
    transform: scale(1.015);
}

.photo-manager {
    padding: 28px 32px 35px;
    border-top: 1px solid var(--line);
}

.manager-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.manager-title h3,
.password-form h3,
.security-card h3 {
    font-size: 27px;
}

.manager-title p,
.password-form > p,
.security-card p {
    font-size: 13px;
}

.manager-title > strong {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
}

.manage-grid {
    gap: 16px;
    margin-top: 24px;
}

.manage-photo {
    border: 1px solid var(--line);
    background: #f5f3ee;
}

.manage-photo > img {
    display: block;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.manage-photo > div {
    padding: 13px;
}

.visibility,
.delete-photo {
    font-size: 12px;
}

.inline-empty {
    padding: 45px 20px;
    margin-top: 20px;
    text-align: center;
    border: 1px dashed var(--line);
    color: var(--muted);
    font-size: 14px;
}

.form-actions {
    padding: 24px 32px;
}

.gallery-uploader {
    margin-top: 24px;
}

.gallery-uploader > .panel-head > i {
    font-size: 11px;
    font-style: normal;
    text-transform: uppercase;
    background: #eeeae3;
    padding: 8px 12px;
    border-radius: 20px;
}

.gallery-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 0;
}

.gallery-upload-layout > div {
    padding-bottom: 28px;
}

.gallery-dropzone {
    min-height: 240px;
    margin: 28px 30px 18px;
}

.dropzone > b {
    width: 58px;
    height: 58px;
    font-size: 26px;
}

.dropzone strong {
    font-size: 21px;
}

.dropzone p,
.dropzone small {
    font-size: 12px;
}

.upload-queue {
    padding: 0 30px;
}

.upload-queue article {
    grid-template-columns: 56px 1fr 82px;
    padding: 13px 0;
}

.upload-queue img {
    width: 56px;
    height: 56px;
}

.upload-queue strong {
    font-size: 13px;
}

.upload-queue small,
.upload-queue em {
    font-size: 11px;
}

.file-state {
    font-size: 10px;
}

.gallery-upload-button {
    width: calc(100% - 60px);
    margin: 20px 30px 0;
}

.gallery-upload-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gallery-monitor {
    border-left: 1px solid var(--line);
}

.progress-circle {
    width: 170px;
    height: 170px;
}

.progress-circle strong {
    font-size: 35px;
}

.progress-circle small {
    font-size: 10px;
}

.monitor-stats strong {
    font-size: 23px;
}

.monitor-stats span {
    font-size: 10px;
}

.monitor-panel dt,
.monitor-panel dd,
.gallery-monitor dt,
.gallery-monitor dd {
    font-size: 12px;
}

.gallery-monitor dl {
    padding: 18px 24px;
    margin: 0;
}

.gallery-monitor dl div {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eeeae4;
}

.gallery-monitor dd {
    margin: 0;
}

.gallery-monitor dt {
    color: var(--muted);
}

.upload-error {
    font-size: 13px;
}

.create-event-cta {
    white-space: nowrap;
}

.crew-profile strong {
    font-size: 15px;
}

.crew-profile small {
    font-size: 12px;
}

.crew-profile > i {
    font-size: 11px;
}

.permission-box > strong {
    font-size: 13px;
}

.permission-box p {
    font-size: 13px;
}

.security-card small {
    font-size: 12px;
}

@media (max-width: 1100px) {
    .create-event-grid,
    .event-edit-grid,
    .gallery-upload-layout {
        grid-template-columns: 1fr;
    }
    .gallery-monitor {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
    .manage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .sidebar {
        width: 250px;
    }
    .admin-main {
        margin-left: 250px;
    }
    .admin-content {
        padding-left: 28px;
        padding-right: 28px;
    }
    .flash {
        margin-left: 28px;
        margin-right: 28px;
    }
}

@media (max-width: 760px) {
    .sidebar {
        width: 280px;
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-top {
        height: 105px;
        padding: 0 19px;
    }
    .admin-top h1 {
        font-size: 31px;
    }
    .admin-content {
        padding: 25px 16px 40px;
    }
    .flash {
        margin: 15px 16px 0;
    }
    .stats-grid article {
        min-height: 165px;
        padding: 22px;
    }
    .stats-grid strong {
        font-size: 42px;
    }
    .table-toolbar {
        align-items: stretch;
        gap: 12px;
    }
    .table-toolbar form {
        flex: 1;
    }
    .table-toolbar input {
        min-width: 0;
        width: 100%;
    }
    .create-event-grid,
    .event-edit-grid {
        padding: 18px;
        gap: 18px;
    }
    .event-information,
    .cover-upload-card {
        padding: 20px;
    }
    .cover-dropzone,
    .cover-dropzone img {
        height: 390px;
        min-height: 390px;
    }
    .cover-dropzone.compact,
    .cover-dropzone.compact img {
        height: 320px;
        min-height: 320px;
    }
    .photo-manager {
        padding: 22px 18px 28px;
    }
    .manage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-dropzone {
        margin: 20px 18px;
    }
    .upload-queue {
        padding: 0 18px;
    }
    .gallery-upload-button {
        width: calc(100% - 36px);
        margin-left: 18px;
        margin-right: 18px;
    }
    .login-card h1,
    .setup-card h1 {
        font-size: 41px;
    }
    .login-card label,
    .setup-card label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .table-toolbar {
        flex-direction: column;
    }
    .create-event-cta {
        width: 100%;
    }
    .manager-title {
        align-items: flex-start;
        gap: 12px;
    }
    .manage-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .manage-photo > div {
        align-items: flex-start;
        gap: 8px;
        flex-direction: column;
    }
    .gallery-upload-layout {
        display: block;
    }
    .upload-queue article {
        grid-template-columns: 48px 1fr;
    }
    .upload-queue img {
        width: 48px;
        height: 48px;
    }
    .file-state {
        grid-column: 2;
    }
    .form-actions {
        padding: 18px;
        flex-wrap: wrap;
    }
    .form-actions .btn {
        flex: 1;
    }
    .public-header nav {
        font-size: 12px;
    }
    .login-button {
        padding: 10px 15px;
    }
}

/* Ordered portrait grid inside an event */
.gallery-section {
    max-width: 1900px;
    padding: 62px 3.4vw 110px;
}

.gallery-heading {
    align-items: center;
    padding: 0 0 34px;
    margin-bottom: 50px;
    border-bottom: 0;
}

.gallery-heading h2 {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-heading .eyebrow {
    font-size: 10px;
}

.share-event {
    padding: 12px 16px;
    font-size: 11px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: clamp(24px, 4.8vw, 92px);
    row-gap: 76px;
}

.photo-grid figure,
.photo-grid figure.wide {
    grid-column: auto;
    aspect-ratio: 4/5;
    margin: 0;
    background: #f2f2f2;
}

.photo-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-grid figcaption {
    right: 12px;
    bottom: 12px;
}

.photo-grid button,
.photo-grid figcaption a {
    padding: 10px 12px;
    font-size: 10px;
    letter-spacing: 0.08em;
}

/* Neat uploader and dashboard gallery management */
.gallery-uploader {
    overflow: hidden;
}

.gallery-upload-layout {
    grid-template-columns: minmax(0, 2fr) minmax(330px, 0.95fr);
    align-items: stretch;
}

.gallery-upload-main {
    min-width: 0;
    padding: 28px 30px 30px;
}

.gallery-upload-main .gallery-dropzone {
    width: 100%;
    min-height: 260px;
    margin: 0;
}

.gallery-upload-main .upload-queue {
    max-height: 330px;
    margin-top: 20px;
    padding: 0;
    overflow: auto;
}

.btn.full.gallery-upload-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    margin: 24px 0 0;
}

.gallery-monitor {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
}

.gallery-monitor .progress-circle {
    flex: 0 0 auto;
    margin: 30px auto;
}

.gallery-monitor .monitor-stats {
    margin-top: 0;
}

.gallery-monitor dl {
    margin-top: auto;
}

.manage-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

@media (max-width: 1250px) {
    .photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 34px;
    }
    .gallery-upload-layout {
        grid-template-columns: minmax(0, 1.55fr) minmax(315px, 0.8fr);
    }
}

@media (max-width: 1000px) {
    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 34px;
    }
    .gallery-upload-layout {
        grid-template-columns: 1fr;
    }
    .gallery-monitor {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 700px) {
    .gallery-section {
        padding: 45px 18px 75px;
    }
    .gallery-heading {
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 34px;
    }
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .photo-grid figcaption {
        right: 7px;
        bottom: 7px;
        gap: 4px;
    }
    .photo-grid button,
    .photo-grid figcaption a {
        padding: 8px;
        font-size: 9px;
    }
    .gallery-upload-main {
        padding: 20px 18px 24px;
    }
    .gallery-upload-main .gallery-dropzone {
        min-height: 220px;
    }
    .btn.full.gallery-upload-button {
        margin-top: 18px;
    }
}

@media (max-width: 430px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
    .gallery-heading {
        flex-direction: column;
    }
    .share-event {
        width: 100%;
    }
}

/* Forced gallery dimensions matching the supplied references */
.events-section {
    width: 100% !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    padding-bottom: 100px !important;
}

.event-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 336px) !important;
    justify-content: space-between !important;
    column-gap: 40px !important;
    row-gap: 74px !important;
}

.event-card,
.event-card.card-1,
.event-card.card-4 {
    display: flex !important;
    grid-column: auto !important;
    width: 336px !important;
    height: auto !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    flex-direction: column !important;
    background: transparent !important;
}

.event-card > img {
    display: block !important;
    width: 336px !important;
    max-width: 336px !important;
    height: 298px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
}

.event-card .event-shade {
    display: none !important;
}

.event-card .event-caption {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 18px !important;
    padding: 0 !important;
    color: #111 !important;
    text-align: center !important;
}

.event-card .event-caption strong {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.event-card .event-caption small {
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.22em !important;
    color: #8a7566 !important;
    opacity: 1 !important;
    text-transform: uppercase !important;
}

.gallery-section {
    width: 100% !important;
    max-width: 1810px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-bottom: 110px !important;
}

.photo-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 278px) !important;
    justify-content: space-between !important;
    column-gap: 42px !important;
    row-gap: 76px !important;
}

.photo-grid figure,
.photo-grid figure.wide {
    grid-column: auto !important;
    width: 278px !important;
    max-width: 278px !important;
    height: auto !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

.photo-grid figure > img {
    display: block !important;
    width: 278px !important;
    max-width: 278px !important;
    height: auto !important;
    object-fit: contain !important;
}

.photo-grid figcaption {
    right: 10px !important;
    bottom: 10px !important;
}

@media (max-width: 1350px) {
    .event-grid {
        grid-template-columns: repeat(3, 300px) !important;
        justify-content: space-around !important;
    }
    .event-card,
    .event-card.card-1,
    .event-card.card-4 {
        width: 300px !important;
    }
    .event-card > img {
        width: 300px !important;
        max-width: 300px !important;
        height: 266px !important;
    }
    .photo-grid {
        grid-template-columns: repeat(4, 250px) !important;
        justify-content: space-around !important;
    }
    .photo-grid figure,
    .photo-grid figure.wide,
    .photo-grid figure > img {
        width: 250px !important;
        max-width: 250px !important;
    }
}

@media (max-width: 1050px) {
    .event-grid {
        grid-template-columns: repeat(2, 300px) !important;
    }
    .photo-grid {
        grid-template-columns: repeat(3, 240px) !important;
    }
    .photo-grid figure,
    .photo-grid figure.wide,
    .photo-grid figure > img {
        width: 240px !important;
        max-width: 240px !important;
    }
}

@media (max-width: 720px) {
    .events-section,
    .gallery-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .event-grid {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        row-gap: 48px !important;
    }
    .event-card,
    .event-card.card-1,
    .event-card.card-4 {
        width: min(336px, 100%) !important;
    }
    .event-card > img {
        width: 100% !important;
        max-width: 336px !important;
        height: auto !important;
        aspect-ratio: 1.128/1 !important;
    }
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .photo-grid figure,
    .photo-grid figure.wide,
    .photo-grid figure > img {
        width: 100% !important;
        max-width: none !important;
    }
}
