@charset "utf-8";
@import url("base.css");
/* 贵州信息港图集频道2022-9-30 */

/*图集频道*/
.morepic-wrap{ height: auto; margin-bottom: 20px;}
.morepic-box{ padding-top: 20px;}
.morepic-box h2{
	font-size: 1.2em;
	margin-bottom: 15px;
}
.morepic-box ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
	margin-bottom: 20px;
}

.morepic-box li {
  list-style: none;
  margin: 0;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.morepic-box li:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.morepic-box li.titlepic img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.morepic-box li.titlepic h2 {
  padding: 15px;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: #333;
}
/*图片内页*/
.about-pic-info{ padding: 10px 5px; border-top: 1px dashed #bfbfbf;}
.img-info{ margin-bottom: 15px; }
.img-info p{ line-height: 28px; padding: 10px 0px; }
.time-address{ font-size: 12px; color: #bfbfbf; }
.time-address span{ padding:5px }
.time-address a{ color: #bfbfbf;}
.time-address a:hover{ color: #398ACD;}
.picview-box{ padding:10px 2px 45px 2px; height: auto; overflow: hidden; }
/*内页浏览*/
.picview-box {
            margin: 0 auto;
        }
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            padding: 20px 0;
        }
		.gallery > * {
		aspect-ratio: 16/10; /* 长方形比例 */

		}
        .gallery-item {
            border-radius: 5px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s;
            cursor: pointer;
			margin-bottom: 15px;
        }
        .gallery-item:hover {
            transform: scale(1.03);
        }
        .thumb-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        .modal.active {
            opacity: 1;
            pointer-events: auto;
        }
        .modal-content {
            position: relative;
            width: 95%;
            max-width: 100%;
            height: 95%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .image-picview-box {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
		.image-container{ width: 100%; height: 100%; overflow: hidden;}
        .modal-img {
			width: 100%;
            height: 100%;
			margin: auto;
            object-fit: contain;
            transition: transform 0.5s ease, opacity 0.5s ease;
        }
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.2);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        .nav-btn:hover {
            background: rgba(255,255,255,0.4);
        }
        .prev-btn {
            left: 20px;
        }
        .next-btn {
            right: 20px;
        }
        .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 30px;
            cursor: pointer;
            background: none;
            border: none;
            z-index: 10;
        }
        .loading {
            position: absolute;
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        @keyframes slideInLeft {
            from { transform: translateX(-100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        @keyframes slideOutRight {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(-100%); opacity: 0; }
        }
        @keyframes slideOutLeft {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }
        @media (max-width: 768px) {
            .gallery {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 10px;
            }
            .nav-btn {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
        }
        @media (max-width: 480px) {
            .gallery {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }
        }