/**
 * Image Gallery Styles
 * 
 * Styles for the image gallery with 3D frame effect using grayscale shading.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: auto;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
}

.menu {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    border-radius: 0 8px 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #f5f5f5;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-item:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}

.menu-item:active {
    transform: scale(0.95);
}

.menu-icon {
    font-size: 24px;
    display: block;
}

.menu-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}

.menu-item:hover .menu-icon-circle {
    border-color: #999;
    background-color: #f5f5f5;
}

.menu-icon-i {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 22px;
    font-style: normal;
    line-height: 1;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

.gallery {
    column-count: auto;
    column-width: 250px;
    column-gap: 16px;
    padding: 8px;
    background-color: #ffffff;
}

.gallery-item {
    position: relative;
    padding: 0;
    background: transparent;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    overflow: hidden;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 16px;
    display: inline-block;
    width: 100%;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-item:active {
    transform: scale(1.02);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 12px;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #666;
    display: none;
}

.loading.show {
    display: block;
}

.gallery.empty {
    display: none;
}

.content {
    margin-left: 100px;
    padding: 20px;
    min-height: 100vh;
}

.content h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.content p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1em;
}

.info-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.info-section h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    margin-top: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.info-section h3 {
    font-size: 1.3em;
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-section ul {
    margin-left: 20px;
    margin-bottom: 1em;
}

.info-section li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.info-section a {
    color: #0066cc;
    text-decoration: none;
}

.info-section a:hover {
    text-decoration: underline;
}

.editor-iframe {
    width: 100%;
    height: calc(100vh - 120px);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

