/* ========================================
   PHOTO ALBUM PAGE
======================================== */

.photo-album-page {
    width: min(1400px, 95%);
    margin: 2rem auto;
}

.photo-album-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 1rem;
    border-radius: 15px;
    clip-path: none;
    z-index: auto;
}

.photo-album-header h1 {
    margin: 0;
}

.photo-album-header p {
    margin-top: 0.5rem;
}

.photo-album-header a,
.photo-album-header button,
.album-upload-section button,
.album-photo-card button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
    font-weight: bold;
    font-size: 10px;
      background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.025)),
    linear-gradient(135deg, #0e2b57, #1d365a);
  color: #fff;
}

.photo-album-header a:hover,
.photo-album-header button:hover,
.album-upload-section button:hover,
.album-photo-card button:hover {
    transform: translateY(-2px);
    background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.025)),
    linear-gradient(135deg, #0a1e3b, #0f1c2e);
    color: #fff;
}

/* ========================================
   PROFILE ALBUM CARDS
======================================== */

.profile-album-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(240px, 1fr)
    );
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.profile-album-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
    transition: 0.25s ease;
}

.profile-album-card:hover {
    transform: translateY(-4px);
}

.profile-album-cover {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.profile-album-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: 0.3s ease;
}

.profile-album-card:hover .profile-album-cover img {
    transform: scale(1.05);
}

.profile-album-empty-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.profile-album-info {
    padding: 1rem;
}

.profile-album-info h3 {
    margin: 0 0 0.5rem;
}

.profile-album-info p {
    margin: 0;
}

@media (max-width: 768px) {
    .profile-album-grid {
        grid-template-columns: 1fr;
    }

    .profile-album-cover {
        height: 200px;
    }
}

/* ========================================
   UPLOAD SECTION
======================================== */

.album-upload-section {
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.album-upload-section h2 {
    margin-top: 0;
}

.album-upload-section form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.album-upload-section input[type="file"] {
    padding: 0.5rem;
    border-radius: 10px;
}

/* ========================================
   PHOTO GRID
======================================== */

.album-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.album-photo-card {
    border-radius: 15px;
    overflow: hidden;
    padding: 1rem;
}

.album-photo-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.album-photo-card img:hover {
    transform: scale(1.03);
}

.album-photo-card form {
    margin-top: 1rem;
}

.album-photo-card button {
    width: 100%;
}

/* ========================================
   LIGHTBOX
======================================== */

.photo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2rem;
}

.photo-lightbox[hidden] {
    display: none;
}

.photo-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.photo-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;

    font-size: 2rem;
    font-weight: bold;

    background: transparent;
    border: none;

    cursor: pointer;
    z-index: 100000;
}

body.lightbox-open {
    overflow: hidden;
}

/* ========================================
   EMPTY ALBUM
======================================== */

.album-photo-grid p {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    border-radius: 15px;
}

/* ========================================
   ALBUM CREATE FORM
======================================== */

.album-create-form {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 0.75rem;
    align-items: center;
    margin: 1.5rem 0 2rem;
}

.album-create-form input,
.album-create-form select {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.9rem;

    color: #ffffff;
    background: rgba(8, 25, 46, 0.92);

    border: 1px solid rgba(64, 185, 255, 0.35);
    border-radius: 10px;

    font: inherit;
    outline: none;
}

.album-create-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.album-create-form input:focus,
.album-create-form select:focus {
    border-color: #45c8ff;
    box-shadow: 0 0 0 3px rgba(69, 200, 255, 0.15);
}

.album-create-form select {
    cursor: pointer;
}

.album-create-form button {
    min-height: 44px;
    padding: 0.75rem 1.2rem;

    color: #071524;
    background: linear-gradient(
        135deg,
        #50dcff,
        #5c8dff
    );

    border: 0;
    border-radius: 10px;

    font: inherit;
    font-weight: 800;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(50, 160, 255, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.album-create-form button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 26px rgba(50, 160, 255, 0.32);
}

/* ========================================
   PROFILE ALBUM GRID
======================================== */

.profile-album-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(230px, 1fr)
    );
    gap: 1.25rem;
}

.profile-album-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    color: #ffffff;
    background: linear-gradient(
        180deg,
        rgba(18, 43, 70, 0.96),
        rgba(8, 25, 46, 0.98)
    );

    border: 1px solid rgba(72, 191, 255, 0.25);
    border-radius: 16px;

    text-decoration: none;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.profile-album-card:hover {
    transform: translateY(-5px);
    border-color: rgba(72, 205, 255, 0.7);

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.35),
        0 0 22px rgba(59, 180, 255, 0.15);
}

.profile-album-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;

    background: rgba(5, 17, 31, 0.9);
}

.profile-album-cover::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        transparent 55%,
        rgba(3, 12, 24, 0.55)
    );

    pointer-events: none;
}

.profile-album-cover img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.profile-album-card:hover .profile-album-cover img {
    transform: scale(1.06);
}

.profile-album-empty-cover {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 4rem;
    background:
        radial-gradient(
            circle,
            rgba(73, 199, 255, 0.18),
            transparent 65%
        );
}

.profile-album-info {
    padding: 1rem 1.1rem 1.15rem;
}

.profile-album-info h3 {
    margin: 0 0 0.55rem;

    color: #53ddff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-album-info p {
    margin: 0;

    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
    font-weight: 700;
}

/* ========================================
   POST IMAGE GRID
======================================== */

.timeline-post-image-grid {
    display: grid;
    gap: 4px;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 14px;
}

.timeline-post-image-button {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.timeline-post-image-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.timeline-post-image-button:hover img {
    transform: scale(1.03);
}

/* 1 image */

.timeline-post-image-grid.images-1 {
    grid-template-columns: 1fr;
}

.timeline-post-image-grid.images-1
.timeline-post-image-button {
    max-height: 520px;
}

.timeline-post-image-grid.images-1 img {
    max-height: 520px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
}

/* 2 images */

.timeline-post-image-grid.images-2 {
    grid-template-columns: repeat(2, 1fr);
    height: 420px;
}

/* 3 images */

.timeline-post-image-grid.images-3 {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(2, 210px);
}

.timeline-post-image-grid.images-3
.timeline-post-image-button:first-child {
    grid-row: 1 / 3;
}

/* 4 images */

.timeline-post-image-grid.images-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 210px);
}

/* PREVIEW GRID */

.post-preview-grid {
    display: grid;
    gap: 4px;
    overflow: hidden;
    border-radius: 12px;
}

.post-preview-grid.images-1 {
    grid-template-columns: 1fr;
}

.post-preview-grid.images-2,
.post-preview-grid.images-4 {
    grid-template-columns: repeat(2, 1fr);
}

.post-preview-grid.images-3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-preview-grid img {
    width: 100%;
    height: 150px;
    display: block;
    object-fit: cover;
}

/* MOBILE */

@media (max-width: 700px) {
    .timeline-post-image-grid.images-2 {
        height: 300px;
    }

    .timeline-post-image-grid.images-3 {
        grid-template-rows: repeat(2, 150px);
    }

    .timeline-post-image-grid.images-4 {
        grid-template-rows: repeat(2, 150px);
    }

    .post-preview-grid img {
        height: 110px;
    }
}

.post-preview-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.post-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;

    width: 30px;
    height: 30px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    color: #fff;
    background: rgba(160, 20, 20, 0.9);

    font-weight: bold;
    cursor: pointer;
}

.post-preview-grid {
    display: grid;
    gap: 10px;
    width: 100%;
}

.post-preview-grid.images-1 {
    grid-template-columns: 1fr;
}

.post-preview-grid.images-2,
.post-preview-grid.images-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-preview-grid.images-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-preview-grid.images-3 .post-preview-image:first-child {
    grid-row: span 2;
}

.post-preview-image {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.post-preview-grid.images-3
.post-preview-image:first-child {
    height: 310px;
}

.post-preview-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.post-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;

    width: 30px;
    height: 30px;
    padding: 0;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    color: #fff;
    background: rgba(180, 25, 25, 0.95);

    font-size: 1rem;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;
}

/* ========================================
   PHOTO ALBUM DETAIL PAGE
======================================== */

.photo-album-main {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0 70px;
}

.photo-album-page {
    display: grid;
    gap: 28px;
    color: #fff;
}

.photo-album-header,
.album-upload-section,
.album-gallery-section {
    border: 1px solid rgba(92, 155, 255, 0.28);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(10, 25, 49, 0.96),
            rgba(4, 13, 28, 0.94)
        );
    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.photo-album-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px;
    overflow: hidden;
    position: relative;
}

.photo-album-header::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(
        to bottom,
        #5ed8ff,
        #276ddd
    );
}

.photo-album-title-block {
    min-width: 0;
}

.photo-album-label,
.album-section-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #67d8ff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.photo-album-title-block h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.photo-album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.photo-album-meta span,
.album-photo-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(105, 174, 255, 0.28);
    border-radius: 999px;
    color: #dbeaff;
    background: rgba(21, 67, 125, 0.28);
    font-size: 0.87rem;
    font-weight: 700;
}

.photo-album-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.photo-album-header-actions form {
    margin: 0;
}

.photo-album-back-button,
.photo-album-delete-button,
.album-upload-button,
.album-photo-delete-button {
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.photo-album-back-button {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(
        135deg,
        #225496,
        #17376a
    );
    box-shadow: 0 10px 24px rgba(17, 62, 120, 0.3);
}

.photo-album-delete-button {
    color: #fff;
    background: linear-gradient(
        135deg,
        #a92836,
        #731623
    );
    box-shadow: 0 10px 24px rgba(145, 21, 39, 0.28);
}

.photo-album-back-button:hover,
.photo-album-delete-button:hover,
.album-upload-button:hover,
.album-photo-delete-button:hover {
    transform: translateY(-2px);
}

.album-upload-section,
.album-gallery-section {
    padding: 28px;
}

.album-upload-heading,
.album-gallery-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.album-upload-heading h2,
.album-gallery-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.album-upload-heading p {
    max-width: 720px;
    margin: 9px 0 0;
    color: #b8cae5;
    line-height: 1.65;
}

.album-upload-form {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: stretch;
    gap: 18px;
}

.album-file-picker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 18px 20px;
    border: 2px dashed rgba(103, 216, 255, 0.48);
    border-radius: 16px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            rgba(31, 101, 180, 0.2),
            rgba(8, 27, 54, 0.42)
        );
    cursor: pointer;
    overflow: hidden;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.album-file-picker:hover {
    border-color: #67d8ff;
    background:
        linear-gradient(
            135deg,
            rgba(36, 118, 210, 0.32),
            rgba(10, 39, 77, 0.54)
        );
    transform: translateY(-1px);
}

.album-file-picker-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(
        135deg,
        #2476d1,
        #164482
    );
    font-size: 1.8rem;
    font-weight: 700;
}

.album-file-picker-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.album-file-picker-text strong {
    font-size: 1.03rem;
}

.album-file-picker-text small {
    color: #aebfda;
    line-height: 1.4;
}

.album-real-file-input {
    position: fixed;
    left: -10000px;
    top: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

button.album-file-picker {
    width: 100%;
    border: 2px dashed rgba(103, 216, 255, 0.48);
    font: inherit;
    text-align: left;
}

.album-upload-button {
    align-self: stretch;
    min-width: 230px;
    color: #fff;
    background: linear-gradient(
        135deg,
        #276ec4,
        #183f79
    );
    box-shadow: 0 12px 26px rgba(17, 69, 137, 0.34);
}

.album-selected-files {
    grid-column: 1 / -1;
    padding: 14px 16px;
    border: 1px solid rgba(102, 174, 255, 0.22);
    border-radius: 12px;
    color: #d5e5fb;
    background: rgba(3, 14, 31, 0.54);
    line-height: 1.55;
}

.album-selected-files strong {
    color: #67d8ff;
}

.album-photo-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(240px, 1fr)
    );
    gap: 20px;
}

.album-photo-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(101, 171, 255, 0.2);
    border-radius: 16px;
    background: #07152b;
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    isolation: isolate;
}

.album-photo-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.album-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 280ms ease,
        filter 280ms ease;
}

.album-photo-card:hover img {
    transform: scale(1.055);
    filter: brightness(0.74);
}

.album-photo-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 42px 14px 14px;
    background: linear-gradient(
        to top,
        rgba(2, 8, 20, 0.96),
        transparent
    );
    transform: translateY(45px);
    transition: transform 220ms ease;
    pointer-events: none;
}

.album-photo-card:hover .album-photo-overlay,
.album-photo-card:focus-within .album-photo-overlay {
    transform: translateY(0);
}

.album-photo-overlay span {
    color: #d8e7fb;
    font-size: 0.78rem;
    font-weight: 700;
}

.album-photo-overlay form {
    margin: 0;
    pointer-events: auto;
}

.album-photo-delete-button {
    min-height: 34px;
    padding: 7px 11px;
    color: #fff;
    background: rgba(171, 32, 48, 0.94);
    font-size: 0.78rem;
}

.album-empty-state {
    display: grid;
    place-items: center;
    min-height: 300px;
    padding: 40px;
    border: 2px dashed rgba(100, 168, 255, 0.24);
    border-radius: 18px;
    text-align: center;
    background: rgba(4, 18, 39, 0.46);
}

.album-empty-state > * {
    margin: 0;
}

.album-empty-icon {
    margin-bottom: 14px;
    font-size: 3rem;
}

.album-empty-state h3 {
    color: #fff;
    font-size: 1.4rem;
}

.album-empty-state p {
    margin-top: 8px;
    color: #aebfda;
}

.photo-album-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 18px;
}

.photo-album-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
}

.photo-album-delete-form {
    margin: 0;
}

.photo-album-back-button .photo-album-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    font-size: 0.87rem;
    font-weight: 700;
    margin-top: -80px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.photo-album-header {
    display: block;
    padding: 32px;
    overflow: hidden;
    position: relative;
}

.photo-album-title-block {
    width: 100%;
    text-align: center;
}

.photo-album-title-block h1 {
    margin: 8px 0 20px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.photo-album-meta-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    width: min(100%, 760px);
    margin: 0 auto;
}

.photo-album-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.photo-album-delete-form {
    margin: 0;
}

.photo-album-back-button,
.photo-album-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.photo-album-back-button {
    background: linear-gradient(
        135deg,
        #225496,
        #17376a
    );
    box-shadow: 0 10px 24px rgba(17, 62, 120, 0.3);
}

.photo-album-delete-button {
    background: linear-gradient(
        135deg,
        #a92836,
        #731623
    );
    box-shadow: 0 10px 24px rgba(145, 21, 39, 0.28);
}

/* ========================================
   LIGHTBOX
======================================== */

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 60px 24px 24px;
    background: rgba(0, 5, 14, 0.94);
    backdrop-filter: blur(8px);
}

.photo-lightbox[hidden] {
    display: none;
}

.photo-lightbox img {
    display: block;
    max-width: min(1200px, 94vw);
    max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.72);
    object-fit: contain;
}

.photo-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(21, 48, 87, 0.92);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {
    .photo-album-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .photo-album-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .album-upload-form {
        grid-template-columns: 1fr;
    }

    .album-upload-button {
        min-height: 54px;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .photo-album-main {
        width: min(100% - 22px, 1380px);
        padding: 20px 0 45px;
    }

    .photo-album-header,
    .album-upload-section,
    .album-gallery-section {
        padding: 20px;
        border-radius: 16px;
    }

    .photo-album-header-actions,
    .photo-album-header-actions form {
        width: 100%;
    }

    .photo-album-back-button,
    .photo-album-delete-button {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .album-file-picker {
        align-items: flex-start;
        min-height: 0;
    }

    .album-photo-grid {
        grid-template-columns: 1fr;
    }

    .album-photo-overlay {
        transform: translateY(0);
    }
}

.album-selected-files-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.album-selected-files-list {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.album-selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(103, 216, 255, 0.2);
    border-radius: 9px;
    background: rgba(8, 27, 54, 0.72);
}

.album-selected-file span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.album-selected-file strong {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-selected-file small {
    color: #aebfda;
}

.album-selected-file-remove,
.album-selected-files-clear {
    border: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.album-selected-file-remove {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(171, 32, 48, 0.9);
}

.album-selected-files-clear {
    color: #ff8995;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 760px) {
    .album-create-form {
        grid-template-columns: 1fr;
    }

    .profile-album-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .photo-album-header {
        flex-direction: column;
        align-items: stretch;
    }

    .album-upload-section form {
        flex-direction: column;
        align-items: stretch;
    }

    .album-photo-card img {
        height: 220px;
    }
}

@media (max-width: 700px) {
    .photo-album-meta-row {
        grid-template-columns: 1fr 1fr;
    }

    .photo-album-meta {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .photo-album-back-button {
        grid-column: 1;
        grid-row: 2;
    }

    .photo-album-delete-form {
        grid-column: 2;
        grid-row: 2;
    }

    .photo-album-delete-button {
        width: 100%;
    }
}