/* Специфічні стилі для сторінки відображення поста */

.post-main-image {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: auto;
    max-height: 90dvh;
    object-fit: contain;
}

/* Іконки та EXIF під картинкою */
.icons-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    padding: 10px 20px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50px; /* Овальна форма */
    transition: all 0.3s ease;
}

.icons-wrapper.active {
    border-radius: 20px; /* Більш квадратна форма при відкритті */
}

/* Кнопка EXIF */
.exif-info-btn-pill {
    padding: 5px 15px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    font-size: 0.8rem;
    font-weight: 500;
}

.exif-info-btn-pill:hover {
    background: #e9ecef;
}

.exif-info-btn-pill i {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.exif-info-btn-pill.active i {
    transform: rotate(180deg);
}

/* EXIF панель */
.exif-panel {
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

#aboutPanel h5 {
    font-size: 1.1rem;
    color: var(--bs-primary);
}

#aboutPanel .post-content-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    white-space: pre-line;
    word-break: break-word;
}

.exif-panel.active {
    height: auto;
    padding-bottom: 20px;
}

.exif-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 для Cam/Lens, 2/3 для параметрів */
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    max-width: 600px;
    width: 100%; /* Займає всю доступну ширину до 600px */
}

.exif-camera-lens-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exif-params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.exif-item {
    text-align: left;
}

.exif-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.exif-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

/* Коментарі */
.comments-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Мобільна адаптація (масштабування) */
@media (max-width: 767px) {
    .icons-wrapper {
        padding: 5px 8px !important;
    }

    /* Вирівнюємо іконки та текст у рядки */
    .icons-wrapper .d-flex {
        gap: 12px !important; /* Більша відстань між лайками/коментами/share */
    }

    /* Лайки/коментарі: іконка і текст збоку */
    .like-action,
    .comment-btn,
    .btn.btn-sm.p-0.border-0.text-muted {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Стилізація кнопок без тексту */
    .exif-info-btn-pill {
        padding: 4px 10px !important; /* Трохи більше місця навколо іконки */
        font-size: 0.9rem !important; /* Збільшили іконку всередині */
        border: none !important;      /* Забрали рамку */
        background: transparent !important;
    }

    /* Ховаємо текст кнопок, але залишаємо іконки */
    .exif-info-btn-pill span {
        display: none !important;
    }

    /* Збільшуємо розмір іконок іконок About/EXIF/Download */
    .exif-info-btn-pill i {
        font-size: 1.1rem !important;
    }

    /* Трохи більше місця для блоку з EXIF/Download */
    .icons-wrapper .d-flex:last-child {
        gap: 15px !important;
    }
}

