/**
 * 全体
 */
 #photos {
    padding-bottom: 80px;
}
#bridal-photo {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0 auto;
}
.hide {
    display: none !important;
}

/**
 * ヘッダー部
 */
#photo-header {
    height: auto;
    padding: 10px;
    margin-top: 0;
    margin-bottom: 10px;
}
#photo-header #search-bar-wrapper {
    display: none;
    width: 100vw;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 80px 15px 20px 15px;
    z-index: 100000;    /* same as header */
}

#photo-header .search-bar {
    width: 100%;
    height: 35px;
    position: relative;
    top: 0;
    right: 0;
    left: 0;
    overflow: visible;
}

#photo-header .search-bar .submit {
    top: 3px;
    right: 0;
    width: 29px;
    height: 29px;
    background-size: 20px 20px;
}
#photo-header .search-bar input {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 1px solid #C5C5C5;
    box-shadow: 0px 4px 16px rgba(69, 91, 99, 0.2);
    box-sizing: border-box;
    padding-right: 30px;
    padding-left: 15px;
    font-size: 16px;
}

/**
 * カテゴリ
 */
#categories-wrapper-sp {
    margin: 0 auto 10px;
    width: 90%;
    width: calc(100% - 20px);
    height: 35px;
    line-height: 35px;
    border-radius: 17px;
    border: 1px solid #B2B9C7;
    display: flex;
    position: relative;
    overflow: hidden;
}
#categories-wrapper-sp:after {
    content: '▼';
    color: #B2B9C7;
    display: block;
    position: absolute;
    top: 0;
    right: 10px;
}
#categories-wrapper-sp span {
    color: #B2B9C7;
    flex-grow: 0;
    display: inline-block;
    padding: 0 10px;
    font-size: 14px;
}
#categories-wrapper-sp select {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 16px;
}
#categories-wrapper-sp .selected-category {
    border: none;
    appearance: none;
    color: #B2B9C7;
    flex-grow: 1;
    padding-right: 30px !important;
    line-height: 35px;
    background-color: transparent;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
}

/**
 * タグ
 */
#popular-tags-wrapper {
    margin-bottom: 10px;
}
#popular-tags-wrapper h5 {
    display: block;
    padding: 0 10px;
    margin: 0;
}
#popular-tags {
    display: block;
    width: 100%;
    padding: 0 10px;
    text-align: left;
}

#popular-tags-wrapper-sp h5 {
    color: #fff;
    margin: 15px 0;
    font-size: 14px;
    position: relative;
}
#popular-tags-wrapper-sp h5 > .hashtag-close {
    position: absolute;
    font-weight: bold;
    font-size: 24px;
    padding: 10px;
    right: -12px;
    top: -16px;
}
#popular-tags-sp a {
    color: #fff;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}


/**
 * 機能バー
 */
#functions-wrapper-sp {
    width: 100%;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    gap: 10px;
}

/**
 * クリップリストへ
 */
#clip-wrapper-sp {
    width: 100%;
    height: 35px;
    line-height: 35px;
}
#clip-wrapper-sp a {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid #B2B9C7;
    box-sizing: border-box;
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    color: #B2B9C7;
    font-size: 14px;
}
#clip-wrapper-sp a:before {
    content: '';
    width: 17px;
    height: 17px;
    margin-right: 5px;
    background-image: url(/assets/img/photo/heart.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    position: relative;
    top: 4px;
}

/**
 * 並び順
 */
 #order-wrapper-sp {
    width: 100%;
    height: 35px;
    line-height: 35px;
}
#order-select-wrapper-sp {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid #B2B9C7;
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    white-space: nowrap;
}
#order-select-wrapper-sp:before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url(/assets/img/photo/sortarrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    position: relative;
    top: 4px;
}
#order-select-wrapper-sp span {
    color: #B2B9C7;
    display: inline-block;
    padding: 0;
    font-size: 14px;
}
#order-select-wrapper-sp select {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 16px;
}

/**
 * 画像ブロック
 */
 #image-block-wrapper .image-block {
    width: 33.3vw;
    height: 33.3vw;
    margin: 0;
    border: 1.5px solid #fafafa;
}
#image-block-wrapper .image-block:nth-child(1), #image-block-wrapper .image-block:nth-child(2), #image-block-wrapper .image-block:nth-child(3) {
    /* ios safariでborder-bottomだと消えてしまう問題があったので対応 */
    border-top: none;
}
#image-block-wrapper .image-block:nth-child(3n-2) {
    border-left: none;
}
#image-block-wrapper .image-block:nth-child(3n) {
    width: 33.4vw;
    height: 33.3vw;
    border-right: none;
}

/**
 * ポップアップ
 */
#popup-view {
    background-color: rgba(0,0,0,0.8);
}
#popup-window {
    width: 100vw;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
    overflow: auto;
    padding-top: 65px;
}
#popup-before, #popup-after {
    position: absolute;
    top: calc(50vw + 20px);
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: 10px 16px;
    background-color: rgba(0,0,0,0.7);
    cursor: pointer;
    z-index: 99;
}
#popup-before {
    left: 20px;
    background-position: 14px center;
}
#popup-after {
    right: 20px;
    background-position: 16px center;
}
#popup-left-view {
    width: 100vw;
    height: 100vw;
    margin-left: auto;
    margin-right: auto;
    background: #333;
    float: none;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
}
#popup-left-view img {
    flex-basis: 100vw;
    width: 100vw;
    height: 100vw;
    min-width: 100vw;
    min-height: 100vw;
}
#popup-left-view img.prev-popup-image {
    margin-left: -100vw;
}
#popup-right-view {
    width: 100vw;
    height: auto;
    float: none;
    padding: 0;
    background: transparent;
}
#popup-message {
    height: auto;
    max-height: 100px;
    padding: 5px 20px;
    color: #eee;
    overflow-y: scroll;
}
#popup-link {
    color: #fff;
    font-weight: bold;
    text-align: center;
    margin: 0;
    display: block;
    background: #B8B8B8;
    box-sizing: border-box;
    transition: none;
    white-space: normal;
    margin: 20px auto;
}
#popup-back-link {
    color: #fff;
    position: absolute;
    top: 30px;
    right: 10px;
}

/**
 * 検索ボタン
 */
#image-search-btn {
    display: block;
    width: 50px;
    height: 50px;
    background-image: url(/assets/img/photo/search_wh.png);
    background-color: rgba(0, 0, 0, 0.7);
    background-size: 28px 28px;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    right: 15px;
    bottom: 40px;
    z-index: 100000;    /* same as header */
}
#image-search-btn.hide {
    display: none;
}
#popup-link-pc {
    margin: 20px auto;
    text-align: center;
}
#popup-link-pc > img {
    width: 250px;
    max-height: 80px;
}
#popup-link-sp {
    width: 90px;
    height: 90px;
    margin: 20px auto;
}
#popup-link-sp > img {
    width: 90px;
    height: 90px;
}
#popup-functions {
    width: 300px;
    height: auto;
    padding: 0;
    margin: 10px auto;
    position: relative;
    z-index: 1;
}
