:root {
    --explore-bg-color: #4192D9;
    --gridpost-bg-color: #aad1f7;
}


.toggle-caption-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -0.35rem auto 0.85rem;
    align-self: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    width: 1.75rem;
    height: 1.75rem;
}

.toggle-caption-btn .toggle-caret {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-left: 2px solid #000000;
    border-bottom: 2px solid #000000;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.toggle-caption-btn.expanded .toggle-caret {
    transform: rotate(135deg);
}
@font-face {
    font-family: 'Geneva';
    src: url(fonts/Geneva.ttf)
}

@font-face {
    font-family: 'Roboto';
    src: url(fonts/Genova.otf);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url(fonts/Genova-Italic.otf);
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url(fonts/Genova-Medium.otf);
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url(fonts/Genova-MediumItalic.otf);
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url(fonts/Genova-Black.otf);
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url(fonts/Genova-BlackItalic.otf);
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto';
    src: url(fonts/Genova-Thin.otf);
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url(fonts/Genova-ThinItalic.otf);
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'caption-font';
    src: url(fonts/LiberationSans-Regular.ttf)
}

@font-face {
    font-family: 'caption-font';
    src: url(fonts/LiberationSans-Italic.ttf);
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: 'caption-font';
    src: url(fonts/LiberationSans-Bold.ttf);
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: 'caption-font';
    src: url(fonts/LiberationSans-BoldItalic.ttf);
    font-style: italic;
    font-weight: 700;
}

@font-face {
    font-family: 'only-you';
    src: url(fonts/Only_You_Handwritten_Free_Font.otf);
}

@font-face {
    font-family: 'AppleGaramond';
    src: url(fonts/AppleGaramond.ttf);
}


body{
    background-color: var(--explore-bg-color);
    margin: 2em;
    font-family: 'Roboto', sans-serif;
    position: relative;
}

body.post-open {
    overflow: hidden;
    height: 100vh;
    background-color: var(--explore-bg-color);
}

#cancel-post {
    font-size: 1.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.6em;
    right: 0.8em;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #f7f7f7;
    color: #333;
    line-height: 1;
    margin: 0;
}

#cancel-post:hover {
    background: #f0f0f0;
    border-color: #cfcfcf;
}

#explore-header {
    text-align: center;
    font-size: 2em;
    color: rgb(255, 255, 255);
    width: auto;
}

#create-post-area .caption-editor-wrap {
    position: relative;
    width: 90%;
    align-self: center;
    margin: 0.6rem auto;
    box-sizing: border-box;
}

.title-editor-wrap {
    position: relative;
    width: 90%;
    align-self: center;
    margin: 0 auto 0.6rem;
    box-sizing: border-box;
}

.title-editor {
    min-height: 2.6rem;
    padding: 0.6rem 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
    text-align: left;
    overflow-y: auto;
    outline: none;
    background: #fff;
    width: 100%;
    display: block;
    box-sizing: border-box;
    position: relative;
}

.title-editor:focus {
    border-color: dodgerblue;
}

.title-editor.empty-editor::before {
    content: attr(data-placeholder);
    color: #999;
    position: absolute;
    top: 0.6rem;
    left: 0.8rem;
    pointer-events: none;
}

.title-editor a {
    color: #2f6feb;
    text-decoration: underline;
}

#create-post-area .caption-editor {
    min-height: 20vh;
    max-height: 20vh;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
    overflow-y: auto;
    outline: none;
    background: #fff;
    width: 100%;
    display: block;
    box-sizing: border-box;
    align-self: center;
    position: relative;
}

#create-post-area .caption-editor:focus {
    border-color: dodgerblue;
}

#create-post-area .caption-editor.empty-editor::before {
    content: attr(data-placeholder);
    color: #999;
    position: absolute;
    top: 1rem;
    left: 1rem;
    pointer-events: none;
}

#create-post-area .caption-editor a {
    color: #2f6feb;
    text-decoration: underline;
}

#create-post-area .caption-hidden {
    display: none;
}

#create-post-area .description-editor-wrap {
    position: relative;
    width: 90%;
    align-self: center;
    margin: 0.6rem auto 0;
    box-sizing: border-box;
}

#create-post-area .description-info-btn {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 1rem;
    height: 1rem;
    border: 1px solid #9a9a9a;
    border-radius: 50%;
    background: #fff;
    color: #666;
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    padding: 0;
    z-index: 2;
}

#create-post-area .description-info-tooltip {
    position: absolute;
    top: -3.85rem;
    right: 0;
    width: min(18rem, 75vw);
    padding: 0.55rem 0.65rem;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    font-size: 0.8rem;
    line-height: 1.35;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 3;
}

#create-post-area .description-info-btn:hover + .description-info-tooltip,
#create-post-area .description-info-btn:focus-visible + .description-info-tooltip {
    opacity: 1;
    visibility: visible;
}

#create-post-area .description-editor {
    min-height: 8vh;
    max-height: 8vh;
    padding: 0.8rem 1.6rem 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
    overflow-y: auto;
    outline: none;
    background: #fff;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

#create-post-area .description-editor:focus {
    border-color: dodgerblue;
}

#create-post-area .description-editor::placeholder {
    color: #999;
}

#create-post-area .tag-row {
    position: relative;
    width: 90%;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    --tag-add-width: 0px;
}

#create-post-area .tag-add-btn {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 2px solid #ddd;
    background: #f7f7f7;
    color: #333;
    font-family: 'sans-serif', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#create-post-area .tag-add-btn:hover {
    background: #f0f0f0;
    border-color: #cfcfcf;
}

#create-post-area .tag-box {
    position: absolute;
    left: calc(var(--tag-add-width) + 3em);
    top: 50%;
    transform: translateY(-50%);
    width: 25vw;
    min-width: 320px;
    max-width: 480px;
    height: 25vh;
    min-height: 280px;
    max-height: 440px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 1.5rem;
    display: none;
    z-index: 3;
}

#create-post-area .tag-box.active {
    display: flex;
    flex-direction: column;
}

#create-post-area .tag-box-header {
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.4rem;
    font-family: 'sans-serif', sans-serif;
}

#create-post-area .tag-box-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

#create-post-area .tag-btn {
    align-self: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 2px solid #ddd;
    background: #f7f7f7;
    color: #333;
    font-family: 'sans-serif', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#create-post-area .tag-btn.active {
    background: #cfcfcf;
    border-color: #b5b5b5;
    color: #111;
}

#create-post-area .tag-btn.active::after {
    content: "×";
    margin-left: 0.4rem;
    font-weight: 600;
}

#create-post-area .tag-btn:hover {
    background: #f0f0f0;
    border-color: #cfcfcf;
}

#create-post-area .tag-btn.active {
    background: #cfcfcf;
    border-color: #b5b5b5;
    color: #111;
}

#create-post-area .selected-tags {
    width: 90%;
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: -0.2rem auto 0;
}

#create-post-area .selected-tags-title {
    width: 90%;
    align-self: center;
    font-family: 'sans-serif', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #333;
    margin: 0.2rem auto -0.1rem;
    text-align: left;
    display: none;
}

#create-post-area .selected-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 2px solid #ddd;
    background: #f7f7f7;
    color: #333;
    font-family: 'sans-serif', sans-serif;
    font-size: 1rem;
    line-height: 1;
    gap: 0.35rem;
    transition: filter 0.15s ease;
}

#create-post-area .selected-tag:hover {
    filter: brightness(0.9);
}

#create-post-area .selected-tag-remove {
    appearance: none;
    border: none;
    background: transparent;
    color: #333;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    padding: 0;
}

#create-post-area .selected-tag:hover .selected-tag-remove {
    display: inline-block;
}

#explore-header h1 {
    font-family: 'AppleGaramond', serif;
    margin: 0;
}

#create-post-area{
    background-color: white;
    width: 40%;
    max-width: 40vw;
    min-width: 350px;
    height: auto;
    min-height: fit-content;
    margin: 2rem auto 8rem;
    padding: 2rem;
    overflow: visible;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

#create-post-area.tags-open::after,
#create-post-area.upload-open::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    pointer-events: none;
    z-index: 2;
}

#create-post-area .upload-modal {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

#create-post-area .upload-modal.active {
    display: flex;
}

#create-post-area .upload-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    width: min(520px, 90%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    position: relative;
}

#create-post-area .upload-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #f7f7f7;
    color: #333;
    cursor: pointer;
}

#create-post-area .upload-dropzone {
    border: 2px dashed #cfcfcf;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #555;
}

#create-post-area .upload-dropzone.dragover {
    border-color: #999;
    background: #fafafa;
}

#create-post-area .upload-from-computer {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 2px solid #ddd;
    background: #f7f7f7;
    color: #333;
    font-family: 'sans-serif', sans-serif;
    cursor: pointer;
}


#create-post-area form {
    display: flex;
    flex-direction: column;
    line-clamp: 3;
    gap: 1rem;
    max-width: auto;
    margin: 0 auto;
}

.media-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    width: 90%;
    align-self: center;
}

.media-btn {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #f7f7f7;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}

.media-btn:hover {
    background: #f0f0f0;
    border-color: #cfcfcf;
}

.media-btn:active {
    transform: scale(0.98);
}

.media-icon {
    width: 1.6rem;
    height: 1.6rem;
    display: block;
}

.media-btn-trash {
    display: none;
    width: 1.4rem;
    height: 1.4rem;
}

.media-tooltip {
    position: absolute;
    bottom: -2.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: Geneva, sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.media-btn:hover .media-tooltip,
.media-btn:focus-visible .media-tooltip {
    opacity: 1;
}

.media-btn.active {
    background: rgba(0, 0, 0, 0.55);
    border-color: transparent;
    color: #fff;
}

.media-btn.active:hover {
    background: rgba(0, 0, 0, 0.4);
    color: #c7c7c7;
}

.media-btn.active .media-icon {
    display: none;
}

.media-btn.active .media-btn-trash {
    display: block;
}

.hidden-file-input {
    display: none;
}

.video-input-wrap {
    width: 90%;
    align-self: center;
    margin: 0 auto;
    display: none;
}

.video-input-wrap.active {
    display: block;
}

.video-input-inner {
    position: relative;
    width: 100%;
    margin: 0;
}

#create-post-area .video-input-inner input[type="url"] {
    width: 100%;
}

.video-preview {
    width: 90%;
    aspect-ratio: 16 / 9;
    margin: 0.75rem auto 0;
    border: 0;
    display: none;
    position: relative;
}

.video-preview.active {
    display: block;
}

.video-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.create-carousel {
    width: 90%;
    max-width: 90%;
    margin: 0.75rem auto 0;
    background: transparent;
    position: relative;
    display: none;
}

.create-carousel.active {
    display: block;
}

#create-post-area.upload-open .create-carousel {
    opacity: 0.35;
}

.create-carousel-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
}

.create-carousel-track::-webkit-scrollbar {
    display: none;
}

.create-carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    position: relative;
}

.create-carousel-track img {
    max-height: 60vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.create-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.create-carousel-arrow.prev {
    left: 0.5rem;
}

.create-carousel-arrow.next {
    right: 0.5rem;
}

.create-carousel-arrow span {
    font-size: 1.6rem;
    line-height: 1;
    display: block;
}

.create-carousel-arrow.prev span {
    transform: translate(0.5px, -1.5px);
}

.create-carousel-arrow.next span {
    transform: translate(1.5px, -1.5px);
}

.create-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.create-carousel-arrow.hidden {
    display: none;
}

.create-carousel-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
}

.create-carousel-remove .trash-icon {
    display: none;
}

.create-carousel-remove::before {
    content: "×";
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-0.5px);
}

.create-carousel-remove:hover {
    background: rgba(0, 0, 0, 0.4);
}

.create-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0 0.2rem;
}

.create-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.create-carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
}

.video-preview .media-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.4rem;
    height: 2.4rem;
    z-index: 5;
}

.video-preview .media-tooltip {
    bottom: auto;
    top: -2.1rem;
}



#create-post-area input[type="text"],
#create-post-area input[type="url"],
#create-post-area textarea {
    -webkit-line-clamp: initial;
    line-clamp: initial;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'sans-serif', sans-serif;
    line-height: 1.4;
    font-size: 1rem;
    transition: border-color 0.1s;
    align-self: center;
    width: 90%;
    box-sizing: border-box;
}

#create-post-area input[name="title"] {
    width: 90%;
}

#create-post-area input[type="file"] {
    padding: 1em;
    font-size: 1rem;
}

#create-post-area input[type="text"]:focus,
#create-post-area input[type="url"]:focus,
#create-post-area textarea:focus {
    outline: none;
    border-color: dodgerblue;
}

#create-post-area textarea {
    min-height: 35vh;
    max-height: 45vh;
    resize: vertical;
}

#create-post-area button[type="submit"] {
    padding: 0.75rem 2rem;
    background-color: dodgerblue;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: center;
    margin-top: 1rem;
}

.link-tool {
    position: fixed;
    display: none;
    z-index: 5000;
    align-items: center;
    gap: 0.4rem;
    width: max-content;
}

.link-tool.active {
    display: inline-flex;
}

.link-tool-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.link-tool-btn:hover {
    background: #f5f5f5;
}

.link-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.italic-icon {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1;
    color: currentColor;
}

.bold-icon {
    font-family: 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    color: currentColor;
}

.link-input-wrap {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 0.2rem 0.4rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.link-input-wrap.active {
    display: inline-flex;
}

.link-input-wrap input[type="url"] {
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 180px;
}

.link-apply-btn {
    border: none;
    background: #333;
    color: #fff;
    border-radius: 50%;
    width: 1.6rem;
    height: 1.6rem;
    aspect-ratio: 1 / 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
    box-sizing: border-box;
}

.link-apply-icon {
    width: 1rem;
    height: 1rem;
    display: block;
}

.delete-post-btn {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    background: transparent;
    color: #f44336;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    margin-top: 0;
    margin-right: 0;
}

.post-admin-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: -0.35rem;
    margin-right: -0.35rem;
}

.edit-post-btn {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    background: transparent;
    color: #222;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    margin-top: 0;
}

.edit-post-btn:hover {
    color: #666;
}

.edit-post-btn .edit-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.edit-post-btn {
    position: relative;
}

.edit-tooltip {
    position: absolute;
    top: calc(100% + 0.3rem);
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 5;
}

.edit-post-btn:hover .edit-tooltip,
.edit-post-btn:focus-visible .edit-tooltip {
    opacity: 1;
}

.delete-post-btn:hover {
    color: #c7c7c7;
}

.delete-post-btn .trash-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.delete-post-btn {
    position: relative;
}

.delete-tooltip {
    position: absolute;
    top: calc(100% + 0.3rem);
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 5;
}

.delete-post-btn:hover .delete-tooltip,
.delete-post-btn:focus-visible .delete-tooltip {
    opacity: 1;
}

#create-post-area button[type="submit"]:hover {
    background-color: rgb(30, 120, 200);
}


#create-post-btn:hover {
    filter: brightness(0.9);
}

#create-post-screen.screen{
    position: fixed;
    display: none; /* shown when .active is present */
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.55);
    padding-bottom: 10rem;
}

#create-post-screen.screen.active{
    display: block;
}

#close-confirmation{
    padding: 0.75rem 1.5rem;
    background-color: dodgerblue;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#close-confirmation:hover{
    background-color: rgb(30, 120, 200);
}

#home-button {
    cursor: pointer;
    border-radius: 1em;
    height: 3rem;
    width: 5rem;
    font-size: 1.1em;
    font-family:'Times New Roman', Times, serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

#create-post-btn {
    cursor: pointer;
    border-radius: 1em;
    height: 3rem;
    width: 5rem;
    font-size: 1.1em;
    font-family:'Times New Roman', Times, serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    position: relative;
}

#create-post-btn .tooltip {
    position: absolute;
    bottom: -2.2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: Geneva, sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#create-post-btn:hover .tooltip,
#create-post-btn:focus-visible .tooltip {
    opacity: 1;
}

.home-icon {
    width: 2rem;
    height: 2rem;
    display: block;
}

.plus-icon {
    width: 2rem;
    height: 2rem;
    display: block;
}

.explore-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.explore-topbar #home-button {
    justify-self: start;
}

.explore-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

#home-button:hover {
    filter: brightness(0.9);
}

.admin-approve-btn {
    display: none;
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    background-color: rgba(50, 150, 50, 0.6);
    border: 1px solid white;
    border-radius: 5px;
    font-family: 'GoudyBookletter', serif;
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-approve-btn.is-visible {
    display: inline-flex;
    align-items: center;
}

.admin-approve-btn:hover {
    background-color: rgba(50, 150, 50, 0.8);
}

#post-confirmed-screen.screen{
    position: absolute;
    display: none;
    z-index: 1000;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

#post-confirmed-screen.screen.active{
    display: flex;
}

#post-confirmed-area{
    background: white;
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 500px;
}

#post-confirmed-area p{
    margin-bottom: 1.5rem;
}

.screen{
    display: none;
    padding: 2rem;
    text-align: center;
}

.screen.active{
    display: block;
}

.entry-screen.screen {
    position: fixed;
    display: none;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    padding: clamp(0.75rem, 3vw, 2rem);
    box-sizing: border-box;
}

#entry-exit-screen.entry-screen.screen {
    z-index: 1200;
}

#entry-exit-screen-2.entry-screen.screen {
    z-index: 1200;
}

.entry-screen.screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    width: min(720px, 100%);
    max-width: 720px;
    min-width: 240px;
    height: fit-content;
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    text-align: center;
    box-sizing: border-box;
    max-height: 85vh;
    overflow-y: auto;
}

.entry-title {
    margin: 0 0 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    color: #222;
}

.entry-message {
    margin: 0 0 1.5rem;
    color: #444;
    font-size: 1rem;
}

#entry-exit-screen-2 .entry-message {
    margin-bottom: 0.6rem;
}

.entry-scale {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.entry-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    width: min(600px, 100%);
    margin: 0.6rem auto 0;
}

.entry-wheel-wrap {
    width: min(680px, 100%);
    margin: 0.8rem auto 0;
}

.entry-wheel-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.entry-wheel-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wheel-segment {
    stroke: rgba(0, 0, 0, 0.08);
    stroke-width: 0.6;
    cursor: pointer;
    transition: filter 0.12s ease, opacity 0.12s ease;
}

.wheel-segment:hover {
    filter: brightness(0.85);
}

.wheel-segment.is-selected {
    filter: brightness(0.75);
}

.wheel-label {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    fill: #222;
    pointer-events: none;
}

.wheel-label.core {
    font-size: 22px;
    font-weight: 600;
}

.wheel-label.secondary {
    font-size: 16px;
}

.wheel-label.tertiary {
    font-size: 13px;
}

.wheel-chill {
    fill: #fff;
    stroke: rgba(0, 0, 0, 0.2);
    stroke-width: 1.2;
    cursor: pointer;
    transition: filter 0.12s ease, opacity 0.12s ease;
}

.wheel-chill:hover {
    filter: brightness(0.92);
}

.wheel-chill.is-selected {
    filter: brightness(0.85);
}

.wheel-chill-label {
    font-family: 'Geneva', sans-serif;
    font-size: 20px;
    fill: #222;
    pointer-events: none;
}

.entry-emoji-row {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    align-items: center;
    width: min(600px, 100%);
    margin: 0 auto;
    font-size: 0.8rem;
}

.entry-emoji-start {
    grid-column: 1 / span 1;
    justify-self: center;
}

.entry-emoji-end {
    grid-column: 10 / span 1;
    justify-self: center;
}

.entry-scale-buttons {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.5rem;
    width: min(600px, 100%);
    margin: 0 auto;
}

.entry-scale-btn,
.exit-scale-btn {
    border: 2px solid #ddd;
    border-radius: 999px;
    background: #f7f7f7;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.entry-scale-btn:hover,
.exit-scale-btn:hover {
    background: #eee;
    border-color: #cfcfcf;
}

.entry-scale-btn.is-selected,
.exit-scale-btn.is-selected {
    background: #222;
    border-color: #222;
    color: #fff;
}

.entry-next-btn {
    margin-top: 1.4rem;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    border: 2px solid #222;
    background: #222;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.entry-next-btn:hover {
    background: #444;
    border-color: #444;
}

.entry-next-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: #444;
    border-color: #444;
}

/* Approved Posts Masonry Layout */
#approved-posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5em;
    align-items: start;
    padding: 0.75em 0;
    margin-top: 0.5em;
    width: min(900px, 92vw);
    margin-left: 0;
    margin-right: 0;
}

.approved-post-column {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.explore-search {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.explore-search input {
    width: min(720px, 90vw);
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-family: 'sans-serif', sans-serif;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.explore-search input:focus {
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.explore-content-layout {
    width: calc(100vw - 2em);
    margin: 0;
    margin-left: -1em;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 250px;
    align-items: start;
    gap: 1rem;
}

.explore-tag-filter {
    background: #0074D9;
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0.8rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin-top: 1.25em;
}

.explore-side-box {
    background: #004B8D;
    border-radius: 12px;
    min-height: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-top: 1.25em;
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
}

.explore-side-box.announcement-editing {
    cursor: default;
}

.explore-side-box:not(.announcement-editing)[data-admin="true"] {
    cursor: pointer;
}

.explore-side-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.announcement-edit-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
    padding: 0;
    line-height: 1;
    transition: opacity 0.15s;
}

.announcement-edit-btn:hover {
    opacity: 1;
}

.explore-side-box-text {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: center;
}

.explore-side-box-title {
    margin: 0;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.explore-side-box-content {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.explore-side-box-content:empty::before {
    content: "Nothing new to report :)";
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: 0.9rem;
}

.announcement-textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.45;
    padding: 0.5rem 0.6rem;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
}

.announcement-textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.announcement-textarea:focus {
    border-color: rgba(255, 255, 255, 0.8);
}

.announcement-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.announcement-save-btn,
.announcement-clear-btn,
.announcement-cancel-btn {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.announcement-save-btn {
    background: #fff;
    color: #004B8D;
}

.announcement-clear-btn {
    background: transparent;
    color: #fff;
}

.announcement-cancel-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.announcement-save-btn:hover { background: #e8f0ff; }
.announcement-clear-btn:hover { background: rgba(255,255,255,0.1); }
.announcement-cancel-btn:hover { color: #fff; }

.explore-tag-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.explore-tag-filter-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.explore-tag-filter-header h2 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

#tag-filter-clear {
    border: 1px solid rgba(255,255,255,0.5);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
}

#tag-filter-clear:hover {
    opacity: 1;
}

#tag-filter-mode-toggle {
    border: 1px solid #9ab2c9;
    background: #fff;
    color: #173a5c;
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.explore-tag-filter-help {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    color: #fff;
}

#explore-tag-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.explore-tag-filter-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: #fff;
}

.explore-tag-filter-option input {
    width: 0.95rem;
    height: 0.95rem;
}

.explore-tag-filter-empty {
    margin: 0.3rem 0;
    color: #fff;
    font-size: 0.9rem;
}


@media (max-width: 1024px) {
    .explore-content-layout {
        grid-template-columns: 1fr;
    }

    .explore-tag-filter {
        position: static;
        max-height: none;
        width: min(900px, 92vw);
        margin: 0 auto;
    }

    .explore-side-box {
        display: none;
    }

    #explore-tag-filter-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #approved-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: auto;
        margin-right: auto;
    }

    .explore-topbar {
        gap: 0.65rem;
    }

    #home-button,
    #create-post-btn {
        width: 5.75rem;
        height: 3.35rem;
        font-size: 1.05rem;
    }

    .home-icon,
    .plus-icon {
        width: 2.2rem;
        height: 2.2rem;
    }

    .admin-approve-btn {
        padding: 0.7rem 0.95rem;
        font-size: 0.95rem;
    }

    .explore-search {
        margin-bottom: 1rem;
        padding: 0 0.35rem;
    }

    .explore-search input {
        width: min(720px, 95vw);
        font-size: 1.05rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 760px) {
    #approved-posts {
        grid-template-columns: 1fr;
    }

    #explore-tag-filter-list {
        grid-template-columns: 1fr;
    }
}

@media (max-device-width: 1024px) {
    #approved-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.approved-post {
    background-color: var(--gridpost-bg-color);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, box-shadow 0.25s ease, transform 0.2s ease;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.approved-post:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.approved-post .post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.2rem;

}

.approved-post .post-header h3 {
    margin: 0;
    color: black;
    font-size: 1.4em;
    flex-grow: 1;
    font-family: 'Roboto', sans-serif;
    white-space: pre-line;
}

.approved-post .post-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 0rem;
    background-color: #f5f5f5;
}

.post-carousel {
    width: 100%;
    margin-bottom: 0.4rem;
    background-color: transparent;
    position: relative;
}

.post-carousel-track {
    display: flex;
    overflow-x: auto;
    direction: ltr;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.post-carousel-track::-webkit-scrollbar {
    display: none;
}

.post-carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    scroll-snap-align: start;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.carousel-arrow.prev {
    left: 0.5rem;
}

.carousel-arrow.next {
    right: 0.5rem;
}

.carousel-arrow span {
    font-size: 1.6rem;
    line-height: 1;
    display: block;
    transform: translateY(-1px);
}

.carousel-arrow.prev span {
    transform: translate(0px, -1px);
}

.carousel-arrow.next span {
    transform: translate(1px, -1px);
}


.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.carousel-arrow.hidden {
    display: none;
}

.post-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0 0.2rem;
}

.post-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.post-carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
}

.post-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.4rem;
    background-color: #000;
    border-radius: none;
    overflow: hidden;
}


.post-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


.approved-post .post-caption {
    color: #000000;
    line-height: 1.3;
    margin: 0.4rem 1rem 0.4rem;
    padding-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
}

.approved-post.no-media .post-caption {
    margin-top: 0;
}

.approved-post.no-media .post-header {
    padding-bottom: 0;
}

.approved-post .post-caption p {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0.6rem;
}

.approved-post .post-tags {
    display: none;
}

.approved-post .post-caption.is-overflowing .post-tags {
    display: none;
}

.approved-post .post-caption.is-overflowing.expanded .post-tags {
    display: none;
}

.approved-post .post-caption.expanded .toggle-caption-btn {
    margin-top: 0.5rem;
    margin-bottom: 0.15rem;
}

/* Caption: shown in full by default. Only clamped to 3 lines if JS detects caption is taller than 100vh. */
.approved-post .post-caption .caption-text {
    white-space: pre-line;
    word-wrap: break-word;
    width: 100%;
}

.approved-post .post-caption.is-overflowing .caption-text {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.approved-post .post-caption.expanded .caption-text {
    display: block;
    -webkit-line-clamp: initial;
    line-clamp: initial;
    overflow: visible;
    white-space: pre-wrap;
}


.no-posts,
.loading,
.error {
    text-align: center;
    color: #333;
    font-size: 1.2em;
    padding: 40px;
}

.no-posts {
    color: #fff;
    text-align: center;
}

.loading {
    color: rgba(0, 0, 0, 0.5);
}

.error {
    color: #d32f2f;
}

/* Post detail modal */
#post-detail-screen.screen {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 2rem;
}

#post-detail-screen.screen.active {
    display: flex;
}

.post-detail-card {
    background: white;
    width: fit-content;
    max-width: 50vw;
    min-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.post-detail-card.text-only {
    width: min(50vw, calc(100vw - 4em));
    min-width: min(400px, calc(100vw - 4em));
}

.post-detail-card.has-video {
    min-width: fit-content;
}

.post-detail-card h2 {
    margin: 0 0 1rem 0;
    width: fit-content;
    max-width: 100%;
    font-size: 2rem;
    color: #111;
    text-align: left;
    padding: 0;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    white-space: pre-line;
}

#post-detail-image {
    display: block;
    max-width: 60vw;
    object-fit: contain;
    margin: 0 auto 1rem;
    background-color: transparent;
    max-height: 70vh;
}

.post-detail-video-embed {
    height: 60vh;
    aspect-ratio: 16 / 9;
    margin: 0 auto 1rem;
    background-color: #000;
    border-radius: none;
    overflow: hidden;
    display: none;
    align-self: center;
    width: fit-content;
    max-width: 90vw;
}


.post-detail-video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}



.post-detail-media {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
}

.post-detail-media.has-video {
    width: fit-content;
    max-width: 100%;
}

.post-detail-carousel {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1rem;
    background: transparent;
    display: flex;
    position: relative;
    align-self: center;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.post-detail-carousel-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    box-sizing: border-box;
}

.post-detail-carousel-track::-webkit-scrollbar {
    display: none;
}

.post-detail-carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: transparent;
}

.detail-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.detail-carousel-arrow.prev {
    left: 0.6rem;
}

.detail-carousel-arrow.next {
    right: 0.6rem;
}

.detail-carousel-arrow span {
    font-size: 1.8rem;
    line-height: 1;
    display: block;
    transform: translateY(-1px);
}

.detail-carousel-arrow.prev span {
    transform: translate(0px, -1px);
}

.detail-carousel-arrow.next span {
    transform: translate(1px, -1px);
}

.detail-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.detail-carousel-arrow.hidden {
    display: none;
}

.post-detail-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0 0.2rem;
    width: 100%;
    margin: 0;
}

.post-detail-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.3);
}

.post-detail-dot.active {
    background: rgba(0, 0, 0, 0.7);
}

#post-detail-caption {
    white-space: pre-wrap;
    line-height: 1.5;
    color: #333;
    font-family: 'Roboto', sans-serif;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: left;
    align-self: center;
    padding: 0;
    box-sizing: border-box;
}

.post-detail-tags {
    margin: 0.6rem 0 0;
    color: #9a9a9a;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.3;
    width: fit-content;
    max-width: 100%;
    text-align: left;
    align-self: flex-start;
    padding: 0;
    box-sizing: border-box;
}

.post-detail-close:hover {
    filter: brightness(0.95);
}


