@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

.custom-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-thumb {
    width: 100px;
    height: auto !important;
    object-fit: contain;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: .8;
}

.gallery-year-title {
    width: 100%;
    font-size: 24px;
    font-weight: bold;
    margin: 40px 0 10px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}
/* ライトボックス背景 */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* フルサイズ画像 */
.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
    transition: opacity .3s ease;
    opacity: 1;
}

/* フェードアニメーション */
.fade-in {
    opacity: 0;
    animation: fadeIn .3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* 左右矢印ボタン */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
    pointer-events: none;
}


.lightbox-arrow:hover {
    opacity: 1;
}

.lightbox-arrow.left {
    left: 20px;
}

.lightbox-arrow.right {
    right: 20px;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
