/*
Theme Name: LD Gallery Theme
Author: The Pixel Partridge
Version: 1.8
*/
:root {
    --black: #1A1A1A;
    --white: #FFFDF8;
    --peach: #FB4D4E;
    --pink: #E0C3FD;
    --yellow: #FFC156;
    --blue: #AAE0FF;
    --gap: 30px;
    --padding: 20px;
}

/************************************************ text styling */

body {  
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    color: var(--black);
    background: var(--white);
}

h1,
.display-1 {
    font-weight: 800;
    font-size: clamp(45px, 12.5vw, 90px);
    line-height: 100%;
    text-transform: uppercase;
    margin: 0;
}

.display-2 {
    font-weight: 700;
    font-size: clamp(25px, 6vw, 60px);
    line-height: 120%;
    margin: 0 0 var(--padding);
}

h2 {
    font-weight: 700;
    font-size: clamp(18px, 3.3vw, 24px);
    line-height: 140%;
    text-transform: uppercase;
}

.bold {
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: color 300ms;
    color: var(--peach);
}
a:hover {
    color: var(--black);
}

.white {
    color: var(--white);
}

.cta-button {
    display: inline-block;
    padding: 5px 12px;
    background: var(--black);
    color: var(--white);
    border-radius: 20px;
    font: inherit;
    cursor: pointer;
    border: 1px solid var(--black);
    transition: background 500ms, color 500ms;
}

.cta-secondary,
.cta-button:hover,
.button-primary:hover {
    background: var(--white);
    color: var(--black);
}

.cta-secondary:hover {
    background: var(--black);
    color: var(--white);
}

/************************************************ navigation */
.navbar {
  z-index: 1;
  position: absolute;
  padding: var(--padding);
  width: calc(100% - var(--padding) - var(--padding));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
    text-transform: uppercase;
    line-height: 100%;
}

.site-navigation {
  display: flex;
  align-items: center;
  justify-content: right;
}

.site-navigation ul {
  display: flex;
  align-items: center;
  gap: var(--gap); 
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation li {
  margin: 0;
  padding: 0;
}

.logo,
.site-navigation a {
    color: var(--black);
}
.site-navigation a {
    transition: color 300ms;
}
.logo {
    transition: color 500ms;
}
.logo:hover,
.site-navigation a:hover,
.site-navigation a.is-active {
    color: var(--white);
}

.site-navigation a.cta-button {
    color: var(--white);
    transition: background 500ms, color 500ms;
}
.site-navigation a.cta-button:hover {
    color: var(--black);
}

.hamburger {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    display: none;
    -webkit-tap-highlight-color: transparent; /* removes iOS tap flash */
    -webkit-touch-callout: none;
    user-select: none;
    cursor: pointer;
}
.hamburger:active {
    background-color: transparent;
}
.hamburger:focus {
    outline: none;
}
.hamburger:focus-visible {
    outline: 2px solid #000; /* optional visible focus for keyboards */
}
.hamburger span {
    position: absolute;
    left: 50%;
    width: 26px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transform: translateX(-50%);
    transform-origin: center center;
}

.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 24px; }
.hamburger span:nth-child(3) { top: 32px; }

.home .logo {
    visibility: hidden;
    cursor: default;
}

h1 span {
    display: block;
}

/************************************************ layout */

body {
    margin: 0;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
}

section {
    padding: var(--padding);
}

/************************************************ hero */

.hero {
    background: var(--peach);
    position: relative;
    padding: var(--padding);
    height: 27.5vw;
    min-height: 400px;
}

.hero-inner {
    max-width: 1200px;
    bottom: var(--padding);
    position: absolute;
}

.hero .display-1 {
    margin: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 33vw;
  min-height: 40vh;
  overflow: hidden;
  padding: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center; /* vertically and horizontally centred */
}

.intro {
    max-width: 1160px;
}

/************************************************ my submissions */

.submission-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.submission-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.submission-table tr {
    border-bottom: 1px solid var(--black);
}

.submission-table th,
.submission-table td {
    padding: var(--padding) var(--padding) var(--padding) 0;
    text-align: left;
    vertical-align: top;
}

.submission-table th {
    padding-bottom: 15px;
}

.submission-table-image {
    width: 140px;
}

.submission-table-title {
    width: 18%;
}

.submission-table-description {
    width: 32%;
}

.submission-table-status {
    width: 140px;
}

.submission-table-date {
    width: 140px;
}

.submission-table-actions {
    width: 120px;
    display: flex;
    flex-direction: row;
    gap: var(--padding);
    align-items: center;
}

.submission-thumb {
    width: 15vw;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e9e9e9;
}

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

.submission-edit-form input[type="text"],
.submission-table textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--black);
    background: var(--white);
    font: inherit;
    color: var(--black);
    box-sizing: border-box;
    border-radius: 0;
    appearance: none;
}

.submission-edit-form textarea {
    min-height: 120px;
    resize: vertical;
}

.submission-delete-form {
    margin-top: 0;
}

.submission-table-actions .button-primary {
    width: 100%;
    text-align: center;
}

.submission-feedback {
    margin: 0 0 var(--padding);
    padding: 15px;
    border: 1px solid var(--black);
    background: var(--white);
}

.submission-edit-form[hidden],
.submission-table textarea[hidden],
.submission-action-set[hidden],
.submission-delete-button[hidden] {
    display: none;
}

.submission-action-set {
    display: flex;
    gap: var(--padding);
}

.submission-table-actions {
    width: 160px;
}

.submission-edit-form {
    display: contents;
}

.submission-edit-form input[type="text"],
.submission-edit-form textarea {
    margin: 0;
}

/************************************************ artworks grid */

.artworks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.artwork-item {
    min-width: 0;
}

.artwork-card {
    display: block;
}

.artwork-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 0;
    background: #e9e9e9;
}

.artwork-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artwork-card-content {
    padding: var(--padding);
}

.artwork-card-content h2 {
    margin: 0;
}

.artwork-card-meta {
    margin: 0;
}

.artwork-item a {
    color: var(--black);
    background: var(--white);
    height: 100%;
    transition: background 500ms, color 5ms;
}

.artwork-item a:hover {
    background: var(--peach);
}

.artwork-item a .cta-button {
    margin-bottom: 0;
}

.artwork-item a:hover .cta-button {
    background: var(--white);
    color: var(--black);
}

/************************************************ single artwork */
.artwork-single {
    display: flex;
    gap: var(--padding);
}

/************************************************ auth page tabs */

.auth-tabs {
    display: flex;
    gap: var(--padding);
    margin-bottom: var(--padding);
    border-bottom: 1px solid var(--white);
}

.auth-tabs a {
    text-decoration: none;
    padding: var(--padding);
    color: #aaa;
    position: relative;
    transition: color 300ms;
}

.auth-tabs a:hover,
.auth-tabs a[aria-current="page"] {
    color: var(--black);
}

.auth-tabs a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: var(--black);
}

/************************************************ auth form */

.auth-form {
    max-width: 640px;
}

.auth-form p {
    margin: 0 0 var(--padding);
}

.auth-form br {
    display: none;
}

p.margin-bottom {
    margin-bottom: var(--padding);
}

/* Hide labels visually but keep for accessibility */
.auth-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.auth-form .visible-label {
    position: relative;
    width: auto;
    height: auto;
    overflow: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Inputs + textarea */
.auth-form input,
.auth-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--black);
    background: var(--white);
    font: inherit;
    color: var(--black);
    box-sizing: border-box;
    border-radius: 0;
    appearance: none;
}
/* Placeholder = visible label */
.auth-form input::placeholder,
.auth-form textarea::placeholder {
    color: var(--black);
    opacity: 1;
}

/* Textarea */
.auth-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* Button */
.auth-form button,
.auth-form input[type="submit"] {
    width: 100%;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    line-height: 100%;
    font: inherit;
    padding: 15px;
    border: 1px solid var(--black);
    transition: background 500ms, color 500ms;
}

.auth-form button:hover,
.auth-form input[type="submit"]:hover {
    background: var(--white);
    color: var(--black);
}

.auth-form input[type="checkbox"] {
    width: var(--padding);
    margin: 0;
    height: var(--padding);
    appearance: auto;
}
.login-remember {
    align-items: center;
    display: flex;
    gap: 10px;
}

/************************************************ footer */

footer {
    height: 17vw;
    background: var(--peach);
    min-height: 200px;
    display: flex;
    justify-content: left;
    align-items: end;
}

button.cookieadmin_re_consent {
    left: auto !important;
    right: var(--padding) !important;
}

footer .footer-links {
 padding: var(--padding)
}
.footer-links a {
    color: var(--black);
}
.footer-links a:hover {
    color: var(--white);
}


/************************************************ responsive */

@media (max-width: 980px) {
    
}


@media (max-width: 782px) {

    html.admin-bar.scroll-lock {
        margin-top: 86px !important;
    }

    .scroll-lock body {
        position: fixed;
        overflow: hidden;
        width: 100%;
    }

    .navbar,
    .site-navigation ul {
        flex-direction: column;
        align-items: start;
    }
    
    .navbar {
        position: fixed;
        background: var(--peach);
        justify-content: center;
        height: 33px;
        overflow: hidden;
        margin: 0;
        gap: 10vw;
        top: 0;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .admin-bar .navbar {
        top: 46px;
    }

    .navbar.expanded {
        background: var(--peach);
        height: 100dvh;
    }
    
    .logo {
        font-size: 16px;
        position: fixed;
        top: 15px;
    }
    .admin-bar .logo {
        top: 63px;
    }

    .home .expanded .logo {
        visibility: visible;
        cursor: cursor;
    }

    .hamburger {
        display: flex;
        z-index: 2;
    }

    .site-navigation {
        display: none;
    }

    .expanded .site-navigation {
        display: block;
    }
    
    .site-navigation ul {
        font-size: 5.5vw;
        gap: 6vw;
    }

    .site-navigation a {
        margin-left: 1.6rem;
    }

    .site-navigation a.cta-button {
        line-height: 120%;
        border-radius: 2rem;
        padding: 0.3rem 1.5rem;
        margin-left: 0;
    }

    .hero { 
        min-height: 300px;
        height: 40vh;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .navbar {
        top: 0;
    }
    
    .admin-bar .logo {
        top: 15px;
    }
}

/* CSS specific to iOS devices */ 
@supports (-webkit-touch-callout: none) {
    input, 
    textarea {
        font-size: 16px !important;
    }
}